From 276dce007415b2436319f4ddaea73a5effa27872 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Sun, 12 Jun 2016 17:01:35 +0200 Subject: [PATCH] give all *args and **kwargs given to tsstats.log.parse_logs directly to parse_log --- tsstats/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsstats/log.py b/tsstats/log.py index 37b8be3..cb5ae37 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -21,7 +21,7 @@ log_timestamp_format = '%Y-%m-%d %H:%M:%S.%f' logger = logging.getLogger('tsstats') -def parse_logs(log_glob, ident_map=None): +def parse_logs(log_glob, ident_map=None, *args, **kwargs): ''' parse logs specified by globbing pattern `log_glob` @@ -36,7 +36,7 @@ def parse_logs(log_glob, ident_map=None): ''' clients = Clients(ident_map) for log_file in sorted(log_file for log_file in glob(log_glob)): - clients = parse_log(log_file, ident_map, clients) + clients = parse_log(log_file, ident_map, clients, *args, **kwargs) return clients