rename to 'localsyslog', conflicts with builtin

This commit is contained in:
Michel Oosterhof 2015-07-30 07:38:46 +00:00
parent 002dde49f3
commit 821abdf934
1 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@ class Output(cowrie.core.output.Output):
def __init__(self, cfg): def __init__(self, cfg):
cowrie.core.output.Output.__init__(self, cfg) cowrie.core.output.Output.__init__(self, cfg)
self.facility = cfg.get('output_syslog', 'facility') facility_string = cfg.get('output_localsyslog', 'facility')
self.syslog = twisted.python.syslog.SyslogObserver(prefix='cowrie') self.facility = vars(syslog)['LOG_' + facility_string]
self.syslog = twisted.python.syslog.SyslogObserver(prefix='cowrie', facility=self.facility)
def start(self): def start(self):
pass pass