diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-23 14:01:35 +0300 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-23 14:01:35 +0300 |
| commit | e05ad549b38b522fabaa8f9c1f0c4b08aa5a0869 (patch) | |
| tree | 586d865c010aaff0ef51d83b5db8004bc2cd3ede /crates | |
| parent | 9c9c9dad93b16781ec2fc40bd7582db62240171c (diff) | |
restore: log an offer's withdrawal only when one was offered
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/dinggerd/src/restore.rs | 6 |
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); |
