Skip to content

Commit

Permalink
fix an error in dump_script_log_extract_for_debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
kay0u authored and alexAubin committed Oct 30, 2023
1 parent 5bd8680 commit 7f954af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def dump_script_log_extract_for_debugging(self):
# 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
Expand Down

0 comments on commit 7f954af

Please sign in to comment.