-
Notifications
You must be signed in to change notification settings - Fork 292
logging should be given a NullHandler #177
Copy link
Copy link
Closed
Description
Hi,
I am getting DEBUG logging statements from this library by way of the requests library. To keep chardet logging messages from showing up in my logging output, I have to explicitly setLevel(logging.WARNING) for the chardet logger.
Would it be reasonable to add a NullHandler to your logger with the level of Logging.INFO? WARNING should still be displayed as described at https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library . Or is this not a problem, and the responsibility to silence all imported modules' logging on the person importing the library?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels