Skip to content
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

logger warning if no handler is defined #15

Closed
ingwinlu opened this issue Oct 1, 2015 · 0 comments · Fixed by #19
Closed

logger warning if no handler is defined #15

ingwinlu opened this issue Oct 1, 2015 · 0 comments · Fixed by #19
Labels
Milestone

Comments

@ingwinlu
Copy link
Owner

ingwinlu commented Oct 1, 2015

>>>from twtich.api import usher
No handlers could be found for logger "twitch"

https://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library

import logging
logging.getLogger('foo').addHandler(logging.NullHandler())
@ingwinlu ingwinlu added the bug label Oct 1, 2015
@ingwinlu ingwinlu added this to the 1.0.1 milestone Oct 1, 2015
ingwinlu added a commit that referenced this issue Oct 1, 2015
When no logging is configured, the absence of a logging handler makes
python output a warning to stdout. Adding a NullHandler resolves this
issue.

Closes #15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant