-
Notifications
You must be signed in to change notification settings - Fork 236
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
How to turn off debug level in krakenex / requests module? #144
Labels
Comments
Update: this code seems to work for me. In the calling application, after obtaining the connection to the API:
Leaving this request open in case there is a better way to do this, or if it is desirable to add this kind of loglevel management to krakenex. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Versions
What are you trying to achieve?
My app uses the python logging library and has the debug level set to INFO. But all krakenex calls results in DEBUG messages being written to the log. This clutters up the log.
What do you expect to happen?
Calls to krakenex should not result in debug messages being written to the log unless desired by the calling application.
I believe that krakenex calls the requests module and the debug level is set there or further deeper. It would be acceptable to figure out a way for my app to somehow set the log level in the requests module. Ideally, krakenex should itself have a way to set the loglevel for all its calls.
All suggestions are appreciated.
The text was updated successfully, but these errors were encountered: