update health_persistence.py

This commit is contained in:
MacRimi
2026-04-06 12:02:05 +02:00
parent 5ead9ee661
commit adde2ce5b9
5 changed files with 245 additions and 104 deletions

View File

@@ -915,8 +915,9 @@ def _capture_health_journal_context(categories: list, reason: str = '') -> str:
return ""
# Capture recent journal entries matching keywords
# Use -b 0 to only include logs from the current boot
cmd = (
f"journalctl --since='10 minutes ago' --no-pager -n 500 2>/dev/null | "
f"journalctl -b 0 --since='10 minutes ago' --no-pager -n 500 2>/dev/null | "
f"grep -iE '{pattern}' | tail -n 30"
)