From 7f954af6b6e5781ee7e7db4853ac2dcc25e2baad Mon Sep 17 00:00:00 2001 From: Kay0u Date: Mon, 2 Oct 2023 04:10:58 +0200 Subject: [PATCH] fix an error in dump_script_log_extract_for_debugging --- src/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.py b/src/log.py index 13683d8ef..e429bbd4a 100644 --- a/src/log.py +++ b/src/log.py @@ -745,7 +745,7 @@ class OperationLogger: # 2019-10-19 16:10:27,611: DEBUG - + mysql -u piwigo --password=********** -B piwigo # And we just want the part starting by "DEBUG - " lines = [line for line in lines if ":" in line.strip()] - lines = [line.strip().split(": ", 1)[1] for line in lines] + lines = [line.strip().split(": ", 1)[-1] for line in lines] # And we ignore boring/irrelevant lines # Annnnnnd we also ignore lines matching [number] + such as # 72971 DEBUG 29739 + ynh_exit_properly