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

Commit d75ae73

Browse files
authored
chore: improve failed message log verbosity (#341)
1 parent 9ad5cad commit d75ae73

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

relayer/relayer.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ func (r *Relayer) route(msgs []*message.Message) {
7777
}
7878

7979
log.Debug().Msgf("Sending messages %+v to destination %v", msgs, destChain.DomainID())
80-
8180
err := destChain.Write(msgs)
8281
if err != nil {
83-
log.Err(err).Msgf("Failed sending messages %+v to destination %v", msgs, destChain.DomainID())
8482
for _, m := range msgs {
83+
log.Err(err).Msgf("Failed sending messages %+v to destination %v", m, destChain.DomainID())
8584
r.metrics.TrackExecutionError(m)
8685
}
8786
return

0 commit comments

Comments
 (0)