From a4c04e34c841ec459da45e3f18e7d111c8780446 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Thu, 11 May 2017 11:32:11 +0200 Subject: [PATCH] Close log files after parsing --- tsstats/log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tsstats/log.py b/tsstats/log.py index ae6249a..1a4ff80 100644 --- a/tsstats/log.py +++ b/tsstats/log.py @@ -185,4 +185,5 @@ def _parse_details(log_path, ident_map=None, clients=None, online_dc=True): 'Finished parsing of %s in %s seconds', log_file.name, time() - start_time ) + log_file.close() return clients