From 23da835e44b02a1dae52cc73928c0dd1db8e6c2e Mon Sep 17 00:00:00 2001 From: Tamas Gal <himself@tamasgal.com> Date: Thu, 1 Sep 2022 15:31:18 +0200 Subject: [PATCH] Fix regex which also caught GZIPped files --- backend/scripts/log_analyser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/scripts/log_analyser.py b/backend/scripts/log_analyser.py index d5e309e..525d911 100755 --- a/backend/scripts/log_analyser.py +++ b/backend/scripts/log_analyser.py @@ -90,7 +90,7 @@ def process_log_file(log_file,out_file): def main(): log_dir = '/logs/' - regexp = '^MSG_(.+)\.log' + regexp = '^MSG_(.+)\.log$' for file in os.listdir(log_dir): if (re.match(regexp,file) and (not os.path.exists(log_dir + os.path.splitext(file)[0] + '.png'))): -- GitLab