Revert "Remove NullHandler from C library logger"

This reverts commit bc8bac1f1a.
This commit is contained in:
Kai Huuhko 2016-08-05 19:43:28 +03:00
parent 13ea0cbe1d
commit 78c9fe21af
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ cdef object add_logger(object name):
log.propagate = True
log.setLevel(logging.WARNING)
#if PY_VERSION_HEX >= 0x02070000:
# log.addHandler(logging.NullHandler())
if PY_VERSION_HEX >= 0x02070000:
log.addHandler(logging.NullHandler())
logging.setLoggerClass(logging.Logger)