From 3979c688367d00b6c415e878819a94a0bd5fc91a Mon Sep 17 00:00:00 2001 From: Jonathan Chappelow Date: Mon, 11 Apr 2022 15:01:44 -0500 Subject: [PATCH] server/swap: add txid to log in handleInit/handleRedeem --- server/swap/swap.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/swap/swap.go b/server/swap/swap.go index 1da529a3b3..c457f571cf 100644 --- a/server/swap/swap.go +++ b/server/swap/swap.go @@ -1852,9 +1852,9 @@ func (s *Swapper) handleInit(user account.AccountID, msg *msgjson.Message) *msgj // Search for the transaction for the full txWaitExpiration, even if it goes // past the inaction deadline. processInit recognizes when it is revoked. expireTime := time.Now().Add(txWaitExpiration).UTC() - log.Debugf("Allowing until %v (%v) to locate contract from %v (%v), match %v", + log.Debugf("Allowing until %v (%v) to locate contract from %v (%v), match %v, tx %s (%s)", expireTime, time.Until(expireTime), makerTaker(stepInfo.actor.isMaker), - stepInfo.step, matchID) + stepInfo.step, matchID, coinStr, stepInfo.asset.Symbol) // Since we have to consider broadcast latency of the asset's network, run // this as a coin waiter. @@ -1933,9 +1933,9 @@ func (s *Swapper) handleRedeem(user account.AccountID, msg *msgjson.Message) *ms // Search for the transaction for the full txWaitExpiration, even if it goes // past the inaction deadline. processRedeem recognizes when it is revoked. expireTime := time.Now().Add(txWaitExpiration).UTC() - log.Debugf("Allowing until %v (%v) to locate redeem from %v (%v), match %v", + log.Debugf("Allowing until %v (%v) to locate redeem from %v (%v), match %v, tx %s (%s)", expireTime, time.Until(expireTime), makerTaker(stepInfo.actor.isMaker), - stepInfo.step, matchID) + stepInfo.step, matchID, coinStr, stepInfo.asset.Symbol) // Since we have to consider latency, run this as a coin waiter. s.latencyQ.Wait(&wait.Waiter{