Commit 0b8b59f1 authored by Jeremy Hylton's avatar Jeremy Hylton

Don't propagate events to the root logger.

parent 86b6c106
...@@ -37,6 +37,7 @@ class EventLogger(BaseLogger): ...@@ -37,6 +37,7 @@ class EventLogger(BaseLogger):
logger = logging.getLogger('event') logger = logging.getLogger('event')
# Add a null handler to prevent warnings about loggers with no handlers: # Add a null handler to prevent warnings about loggers with no handlers:
logger.addHandler(NullHandler()) logger.addHandler(NullHandler())
logger.propagate = 0
def log(self, subsystem, severity, summary, detail, error): def log(self, subsystem, severity, summary, detail, error):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment