Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit 157b041

Browse files
Improve logging around signer delay waiter
1 parent a65145c commit 157b041

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

pkg/node/node.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,9 @@ func (n *Node) waitSignerPublicationDelay(
457457
signerIndex, err := n.getSignerIndex(keepAddress)
458458
if err != nil {
459459
logger.Error(
460-
"could not determine signer publication delay: [%v]; "+
461-
"signer publication delay will not be preserved",
460+
"could not determine signer publication delay for keep [%s]: "+
461+
"[%v]; signer publication delay will not be preserved",
462+
keepAddress.String(),
462463
err,
463464
)
464465
return
@@ -467,16 +468,23 @@ func (n *Node) waitSignerPublicationDelay(
467468
// just in case this function is not invoked in the right context
468469
if signerIndex < 0 {
469470
logger.Error(
470-
"could not determine signer publication delay: "+
471+
"could not determine signer publication delay for keep [%s]: "+
471472
"[signer index is less than zero]; "+
472473
"signer publication delay will not be preserved",
474+
keepAddress.String(),
473475
err,
474476
)
475477
return
476478
}
477479

478480
delay := time.Duration(signerIndex) * signerPublicationDelayStep
479481

482+
logger.Infof(
483+
"waiting [%v] before publishing signature for keep [%s]",
484+
delay,
485+
keepAddress.String(),
486+
)
487+
480488
time.Sleep(delay)
481489
}
482490

0 commit comments

Comments
 (0)