mirror of
https://github.com/block/buzz.git
synced 2026-10-30 22:11:36 +00:00
fix(desktop): also quiet UI-start reconcile noise for unreachable relays
The UI-start profile reconciliation path carried the identical per-agent eprintln! that restore.rs's boot path just learned to suppress. Without the same guard, manually starting a local agent whose relay is unreachable still logs a spurious failure. Apply the matching "relay unreachable:" guard so both reconcile paths are consistent. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
parent
570b8c548c
commit
7c5b1f252e
@@ -867,9 +867,13 @@ pub async fn start_managed_agent(
|
||||
reconcile_agent_profile(&state, &reconcile_app, &reconcile_pubkey, &reconcile_data)
|
||||
.await
|
||||
{
|
||||
eprintln!(
|
||||
"buzz-desktop: profile reconciliation failed for agent {reconcile_pubkey}: {e}"
|
||||
);
|
||||
// Suppress the expected relay-unreachable case; see the same
|
||||
// guard in restore.rs's boot reconcile path for the rationale.
|
||||
if !e.starts_with("relay unreachable:") {
|
||||
eprintln!(
|
||||
"buzz-desktop: profile reconciliation failed for agent {reconcile_pubkey}: {e}"
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user