mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
When dumping debug info after app script failure, be slightly smarter and stop at ynh_die to have more meaningul lines being shown
This commit is contained in:
parent
de879e1d30
commit
8085b3a2c2
1 changed files with 1 additions and 1 deletions
|
@ -896,7 +896,7 @@ def dump_app_log_extract_for_debugging(operation_logger):
|
||||||
line = line.strip().split(": ", 1)[1]
|
line = line.strip().split(": ", 1)[1]
|
||||||
lines_to_display.append(line)
|
lines_to_display.append(line)
|
||||||
|
|
||||||
if line.endswith("+ ynh_exit_properly"):
|
if line.endswith("+ ynh_exit_properly") or " + ynh_die " in line:
|
||||||
break
|
break
|
||||||
elif len(lines_to_display) > 20:
|
elif len(lines_to_display) > 20:
|
||||||
lines_to_display.pop(0)
|
lines_to_display.pop(0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue