From e719ba3d6f078ff4d8737019cc2012616cc32952 Mon Sep 17 00:00:00 2001 From: gerlofvanek Date: Wed, 28 Jan 2026 23:29:03 +0100 Subject: [PATCH] Reduce log noise for watched outputs that were never broadcast. --- basicswap/interface/btc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/basicswap/interface/btc.py b/basicswap/interface/btc.py index 14ec7e9..1efeed4 100644 --- a/basicswap/interface/btc.py +++ b/basicswap/interface/btc.py @@ -2937,7 +2937,11 @@ class BTCInterface(Secp256k1Interface): "height": tx_entry.get("height", 0), } except Exception as e: - self._log.debug(f"checkWatchedOutput exception for {txid_hex}:{vout}: {e}") + error_msg = str(e).lower() + if "no such mempool or blockchain transaction" not in error_msg: + self._log.debug( + f"checkWatchedOutput exception for {txid_hex}:{vout}: {e}" + ) return None def checkWatchedScript(self, script: bytes):