f
This commit is contained in:
@@ -2381,6 +2381,22 @@ def _run(result: Any, args: Sequence[str], config: Dict[str, Any]) -> int:
|
||||
except Exception as e:
|
||||
debug(f"Could not fetch database logs: {e}")
|
||||
pass
|
||||
|
||||
fallback_logs = [
|
||||
("Medeia Lua log file tail", str(_lua_log_file())),
|
||||
("Medeia helper log file tail", str(_helper_log_file())),
|
||||
]
|
||||
for title, path in fallback_logs:
|
||||
try:
|
||||
lines = _tail_text_file(path, max_lines=120)
|
||||
except Exception:
|
||||
lines = []
|
||||
lines = _apply_log_filter(lines, log_filter_text)
|
||||
if not lines:
|
||||
continue
|
||||
print(f"{title}:")
|
||||
for line in lines:
|
||||
print(line)
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user