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:
8 files changed
+345
-26
No files matched your search
@@ -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) => {
|
||||
|
||||
@@ -566,6 +566,7 @@ async fn main() {
|
||||
tui::run(roots).await
|
||||
}
|
||||
};
|
||||
log::logger().flush();
|
||||
std::process::exit(code);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user