fix(log): compact consecutive repeated diagnostics

Group identical redacted diagnostics across stderr, file and the live ring. Flush repeat summaries on visible transitions, exports and shutdown while keeping periodic counts for sustained bursts.

cx
This commit is contained in:
vicrodh committed 2026-09-05 18:36:51 -06:00
1 parent 7ec9788728
commit db84e733d6
8 files changed
+345 -26

No files matched your search

+1
View File
@@ -913,6 +913,7 @@ fn diagnose_lock(e: LockError) -> String {
eprintln!("error: qbzd is already running {who}");
eprintln!(" → stop it first: systemctl --user stop qbzd");
eprintln!(" → or inspect it: systemctl --user status qbzd");
log::logger().flush();
std::process::exit(3);
}
LockError::Io(msg) => {
+1
View File
@@ -566,6 +566,7 @@ async fn main() {
tui::run(roots).await
}
};
log::logger().flush();
std::process::exit(code);
}