From 0ff7ed64fc6e7023f9c1b061f0238db72a08094d Mon Sep 17 00:00:00 2001 From: bruwbird Date: Sun, 8 Sep 2024 11:15:02 +0900 Subject: [PATCH] txwatcher: improve logging in csvPassedCallback enhances logging in the csvPassedCallback function to provide more context when errors occur. It now includes the swap ID, transaction ID, and starting block height along with the error message. This change aids in debugging and troubleshooting issues related to CSV transaction handling. --- txwatcher/rpctxwatcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/txwatcher/rpctxwatcher.go b/txwatcher/rpctxwatcher.go index ffbae41e..d95602b6 100644 --- a/txwatcher/rpctxwatcher.go +++ b/txwatcher/rpctxwatcher.go @@ -188,7 +188,8 @@ func (s *BlockchainRpcTxWatcher) HandleCsvTx(blockheight uint64) error { } err = s.csvPassedCallback(k) if err != nil { - log.Infof("tx callback error %v", err) + log.Infof("csv passed callback err: %v. swap id: %s, tx id: %s, starting block height: %d", + err, k, v.TxId, v.StartingBlockHeight) continue } toRemove = append(toRemove, k)