Skip to content

Commit 208bf42

Browse files
committed
Improve logs
1 parent dabc007 commit 208bf42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chains/evm/message/across.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ func (h *AcrossMessageHandler) Listen(ctx context.Context) {
161161
func (h *AcrossMessageHandler) HandleMessage(m *message.Message) (*proposal.Proposal, error) {
162162
data := m.Data.(AcrossData)
163163

164+
log.Info().Str("depositId", data.DepositId.String()).Msgf("Handling across message %+v", data)
165+
164166
sourceChainID := h.chainID
165167
if data.Coordinator == peer.ID("") {
166168
data.Coordinator = h.host.ID()
@@ -289,8 +291,10 @@ func (h *AcrossMessageHandler) waitForConfirmations(
289291
return nil
290292
}
291293

294+
duration := time.Duration(uint64(h.blocktime) * (requiredConfirmations - confirmations.Uint64())
295+
log.Debug().Msgf("Waiting for tx %s for %s", txHash, duration)
292296
// nolint:gosec
293-
time.Sleep(time.Duration(uint64(h.blocktime) * (requiredConfirmations - confirmations.Uint64())))
297+
time.Sleep(duration))
294298
}
295299
}
296300
}

0 commit comments

Comments
 (0)