Merge pull request #1721 from YunoHost/fix-dump_script_log_extract_for_debugging

Fix dump script log extract for debugging
This commit is contained in:
Alexandre Aubin 2023-10-30 14:01:31 +01:00 committed by GitHub
commit 7c89c2c995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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