From 9a6bbe4f3e7e3d44fbd2dbb8034cb47166245509 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 20 Jun 2016 21:59:46 +0200 Subject: [PATCH] fix 2 typos in tsstats.log._bundle_logs --- tsstats/log.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tsstats/log.py b/tsstats/log.py index 38a72cd..54c2876 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -60,12 +60,13 @@ def _bundle_logs(logs): if match: match = match.groupdict() timestamp = datetime.strptime('{0} {1}'.format( - match['date'], match['time'].replace('_', ':'))) + match['date'], match['time'].replace('_', ':')), + log_timestamp_format) tl = TimedLog(log, timestamp) sid = match['sid'] if sid in vserver_logfiles: # if already exists, keep list sorted by timestamp - vserver_logfiles[sid].apppend(tl) + vserver_logfiles[sid].append(tl) vserver_logfiles[sid] =\ sorted(vserver_logfiles[sid], key=lambda tl: tl.timestamp)