Expand description
v1.4.110 P1-2: crash log + panic hook helpers
抽自 main.rs lines 20-123 (v1.4.97 P1-D-D 实装). Aligned with C++ NNCrashCenter pattern.
Functions§
- crash_
log_ 🔒dir - v1.4.97 P1-D-D: directory holding dated crash logs.
- warn_
if_ previous_ crash - v1.4.97 P1-D-D: at startup, scan crash dir for previous crashes, emit a
WARN log with the latest filename so ops sees “daemon previously crashed
at
” without manual file inspection. Best-effort, silent on errors. - write_
crash_ log_ file - v1.4.97 P1-D-D: synchronously write a crash log file.