Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
chore: improve failed message log verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
P1sar committed May 22, 2023
1 parent 9ad5cad commit 518bb99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ func (r *Relayer) route(msgs []*message.Message) {
}

log.Debug().Msgf("Sending messages %+v to destination %v", msgs, destChain.DomainID())

err := destChain.Write(msgs)
if err != nil {
log.Err(err).Msgf("Failed sending messages %+v to destination %v", msgs, destChain.DomainID())
for _, m := range msgs {
log.Err(err).Msgf("Failed sending messages %+v to destination %v", m, destChain.DomainID())
r.metrics.TrackExecutionError(m)
}
return
Expand Down

0 comments on commit 518bb99

Please sign in to comment.