From 80fcf19009d7f18a7e7bac5a30b31f274721d119 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Sat, 18 Jan 2025 11:49:50 -0300 Subject: [PATCH] loopout: improve log messages Original message "Checking preimage reveal height 231435 exceeded" was not clear and could be interpreted that the swap has expired. Now the same message looks like this: "Checking if preimage reveal height 231435 was exceeded". --- loopout.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/loopout.go b/loopout.go index c866ef60..d50fb26e 100644 --- a/loopout.go +++ b/loopout.go @@ -949,8 +949,8 @@ func (s *loopOutSwap) waitForConfirmedHtlc(globalCtx context.Context) ( MinLoopOutPreimageRevealDelta checkMaxRevealHeightExceeded := func() bool { - s.log.Infof("Checking preimage reveal height %v "+ - "exceeded (height %v)", + s.log.Infof("Checking if preimage reveal height %v "+ + "was exceeded (current height is %v)", maxPreimageRevealHeight, s.height) if s.height <= maxPreimageRevealHeight { @@ -958,7 +958,7 @@ func (s *loopOutSwap) waitForConfirmedHtlc(globalCtx context.Context) ( } s.log.Infof("Max preimage reveal height %v "+ - "exceeded (height %v)", + "exceeded (current height %v)", maxPreimageRevealHeight, s.height) s.state = loopdb.StateFailTimeout