diff --git a/kippo/core/output.py b/kippo/core/output.py index a20d8c2..6a92414 100644 --- a/kippo/core/output.py +++ b/kippo/core/output.py @@ -66,7 +66,7 @@ class Output(object): else: self.sensor = socket.gethostname() - self.start(cfg) + self.start() # use logDispatch when the HoneypotTransport prefix is not available. # here you can explicitly set the sessionIds to tie the sessions together diff --git a/kippo/output/jsonlog.py b/kippo/output/jsonlog.py index 0bc57c0..f86f13f 100644 --- a/kippo/output/jsonlog.py +++ b/kippo/output/jsonlog.py @@ -36,13 +36,14 @@ import kippo.core.output class Output(kippo.core.output.Output): def __init__(self, cfg): - self.outfile = None - - def start(self, cfg): + kippo.core.output.Output.__init__(self, cfg) fn = cfg.get('output_jsonlog', 'logfile') - dir = os.path.dirname(fn) + dirs = os.path.dirname(fn) base = os.path.basename(fn) - self.outfile = twisted.python.logfile.DailyLogFile(base, dir) + self.outfile = twisted.python.logfile.DailyLogFile(base, dirs) + + def start(self): + pass def stop(self): self.outfile.close()