-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No option to supress logs #31
Comments
👍 Agreed, it's polluting our logs as well. |
I did a little more digging. The logs are output through a debug function in I will submit a PR to disable logs soon. |
PR #38 |
Cool! In the meantime, we came up with a hack for this in our application. This may help you.
|
When using clearbit to lookup info, a log is added to the console / stdout with the following signature
Currently there is no way to suppress these logs.
I believe the underlying root cause is the way clearbit/needle handles the logs. Since this is a forked version of needle, upgrading the version of needle could solve this issue as the new version of needle uses the debug module.
Code Reference:
node_modules/lib/needle.js
line# 25The best possible option is to provide a way for the clearbit-node client to suppress logs and perform the check in the underlying needle module.
The text was updated successfully, but these errors were encountered: