From 2f3f7df5a6692e0f5bd773ef5ec530369ba6f7c6 Mon Sep 17 00:00:00 2001 From: Tomasz Slabon Date: Mon, 6 May 2024 16:47:59 +0200 Subject: [PATCH] Improved logging --- pkg/tbtc/heartbeat.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/tbtc/heartbeat.go b/pkg/tbtc/heartbeat.go index c1f9cf4e7e..570ddecb6c 100644 --- a/pkg/tbtc/heartbeat.go +++ b/pkg/tbtc/heartbeat.go @@ -109,7 +109,7 @@ func (ha *heartbeatAction) execute() error { } if isUnstaking { - logger.Warn( + ha.logger.Warn( "quitting the heartbeat action without signing because the " + "operator is unstaking", ) @@ -147,7 +147,7 @@ func (ha *heartbeatAction) execute() error { // If there was no error and the number of active operators during signing // was enough, we can consider the heartbeat procedure as successful. if err == nil && activeOperatorsCount >= heartbeatSigningMinimumActiveOperators { - logger.Infof( + ha.logger.Infof( "successfully generated signature [%s] for heartbeat message [0x%x]", signature, ha.proposal.Message[:], @@ -175,7 +175,7 @@ func (ha *heartbeatAction) execute() error { // If the number of consecutive heartbeat failures does not exceed the // threshold do not notify about operator inactivity. if *ha.failureCounter < heartbeatConsecutiveFailureThreshold { - logger.Infof( + ha.logger.Warnf( "leaving without notifying about operator inactivity; current "+ "heartbeat failure count is [%d]", *ha.failureCounter,