We should not log any error messages from the lib directly as it will lead to too many logs. Eg. https://github.com/aicore/libmysql/blob/main/src/utils/db.js#L285
there are two alternatives:
- Remove all console.error calls, and reject with a {stack and error code}. This will help the receiver decide weather to log it or not.
- Provide a debug flag during init. or a mix of both.
Related to: