Skip to content

remove console.* messages from lib or mask it under a debug mode flag #152

Description

@abose

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:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions