aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-10-23 14:01:35 +0300
committerIgor Soarez <igor@soarez.org>2026-10-23 14:01:35 +0300
commite05ad549b38b522fabaa8f9c1f0c4b08aa5a0869 (patch)
tree586d865c010aaff0ef51d83b5db8004bc2cd3ede
parent9c9c9dad93b16781ec2fc40bd7582db62240171c (diff)
restore: log an offer's withdrawal only when one was offered
-rw-r--r--crates/dinggerd/src/restore.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/dinggerd/src/restore.rs b/crates/dinggerd/src/restore.rs
index 623cdcd..1dca955 100644
--- a/crates/dinggerd/src/restore.rs
+++ b/crates/dinggerd/src/restore.rs
@@ -575,8 +575,10 @@ impl OfferPublisher {
}
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);