Skip to content

Commit

Permalink
Improved logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed May 6, 2024
1 parent ae51571 commit 2f3f7df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/tbtc/heartbeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand Down Expand Up @@ -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[:],
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 2f3f7df

Please sign in to comment.