fn search_panic_in_log(log_path: &Path) -> Option<String>Expand description
Search for panic patterns in a log file. Uses tail to read only the last N lines for efficiency.
Panic patterns include:
- “thread .* panicked”
- Lines containing “PANIC” at ERROR/FATAL level