aboutsummaryrefslogtreecommitdiffstats
path: root/efl/utils/logger.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'efl/utils/logger.pyx')
-rw-r--r--efl/utils/logger.pyx4
1 files changed, 3 insertions, 1 deletions
diff --git a/efl/utils/logger.pyx b/efl/utils/logger.pyx
index d4a1335..3057c12 100644
--- a/efl/utils/logger.pyx
+++ b/efl/utils/logger.pyx
@@ -110,7 +110,9 @@ cdef object add_logger(object name):
else:
log.propagate = True
log.setLevel(logging.WARNING)
- log.addHandler(logging.NullHandler())
+
+ if PY_VERSION_HEX >= 0x02070000:
+ log.addHandler(logging.NullHandler())
logging.setLoggerClass(logging.Logger)