From c0f1a6c64984bf7f22fa06df5804fff58d17c599 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 20 Jun 2016 22:02:55 +0200 Subject: [PATCH] add glob-resolution to tsstats.log.parse_logs * correct name of bundle-function (to tsstats.log._bundle_logs) * add .items() to correct for-loop --- tsstats/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsstats/log.py b/tsstats/log.py index 54c2876..7e08902 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -32,7 +32,8 @@ def parse_logs(log_glob): parse logs from `log_glob` ''' vserver_clients = {} - for virtualserver_id, logs in _sort_logfiles(log_glob): + for virtualserver_id, logs in\ + _bundle_logs(log_file for log_file in glob(log_glob)).items(): clients = Clients() for log in logs: _parse_details(clients=clients)