restore: log an offer's withdrawal only when one was offered
Igor Soarez igor@soarez.org
Fri, 23 Oct 2026 14:01:35 +0300
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
crates/dinggerd/src/restore.rs
→
crates/dinggerd/src/restore.rs
@@ -575,8 +575,10 @@ tracing::info!(sessions = offer.sessions.len(), agents = offer.agents, ok = set.is_ok(), "restore offered");
} None => { let _ = std::fs::remove_file(&file); - let unset = tmux::run(&["set-option", "-g", "-u", "@dingger_restore"]); - tracing::info!(?unset, "restore offer withdrawn"); + let _ = tmux::run(&["set-option", "-g", "-u", "@dingger_restore"]); + if matches!(self.published, Some(Some(_))) { + tracing::info!("restore offer withdrawn"); + } } } self.published = Some(offer);