Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NullHandler instead of basicConfig
logging.basicConfig() was propably added to avoid the dreaded "no log handler found for ..." messages however this is the wrong approach because it interferes with the log handling in applications using the library, instead libraries should never set up log handlers and leave it to client application. To avoid the message, libraries can register the NullHandler though, see for example: http://docs.python-guide.org/en/latest/writing/logging/#logging-in-a-library
- Loading branch information