Redirect noisy warnings to debug log to stop TUI corruption
Duplicate key warnings fire on every store load and were writing to stderr, corrupting the TUI display. Log write warnings and MCP server failures are similarly routine. Route these to dbglog. Serious errors (rkyv snapshot failures, store corruption) remain on stderr — those are real problems the user needs to see. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
c31d531954
commit
3e0d52c451
4 changed files with 5 additions and 5 deletions
|
|
@ -403,7 +403,7 @@ impl Agent {
|
|||
if let Some(ref log) = ctx.conversation_log {
|
||||
let node = &ctx.conversation()[branch_idx];
|
||||
if let Err(e) = log.append_node(node) {
|
||||
eprintln!("warning: log: {:#}", e);
|
||||
dbglog!("warning: log: {:#}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -578,7 +578,7 @@ impl Agent {
|
|||
}
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("warning: failed to reload identity: {:#}", e);
|
||||
dbglog!("warning: failed to reload identity: {:#}", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue