Skip to content

Commit

Permalink
do not propagate syslog messages to root logger
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnykv committed Feb 22, 2013
1 parent 09352eb commit 42529b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/reporting/auxiliary/log_syslog.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, config="glastopf.cfg", create_tables=True):
LogSyslog.logger
except AttributeError:
LogSyslog.logger = logging.getLogger('glaspot_attack')
LogSyslog.logger.propagate = False
LogSyslog.log_handler = logging.handlers.SysLogHandler(address=self.options['socket'])
LogSyslog.logger.addHandler(self.log_handler)
LogSyslog.logger.setLevel(logging.INFO)
Expand Down

0 comments on commit 42529b4

Please sign in to comment.