add glob-resolution to tsstats.log.parse_logs

* correct name of bundle-function (to tsstats.log._bundle_logs)
* add .items() to correct for-loop
This commit is contained in:
Thor77 2016-06-20 22:02:55 +02:00
parent 9a6bbe4f3e
commit c0f1a6c649
1 changed files with 2 additions and 1 deletions

View File

@ -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)