mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
commit
7c89c2c995
1 changed files with 1 additions and 1 deletions
|
@ -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 [37m[1mDEBUG [m29739 + ynh_exit_properly
|
||||
|
|
Loading…
Add table
Reference in a new issue