From e594d2a0c9f54c3e7f5c25cd6372a904bba5214f Mon Sep 17 00:00:00 2001 From: Justin Tieri <37750742+jtieri@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:32:20 -0500 Subject: [PATCH] chore: add path name to logs in message processor (#1171) --- relayer/processor/message_processor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/relayer/processor/message_processor.go b/relayer/processor/message_processor.go index 55b1a9adf..7a4f3fe1c 100644 --- a/relayer/processor/message_processor.go +++ b/relayer/processor/message_processor.go @@ -332,6 +332,7 @@ func (mp *messageProcessor) sendClientUpdate( if err := dst.chainProvider.SendMessagesToMempool(broadcastCtx, msgs, mp.memo, ctx, nil); err != nil { mp.log.Error("Error sending client update message", + zap.String("path_name", src.info.PathName), zap.String("src_chain_id", src.info.ChainID), zap.String("dst_chain_id", dst.info.ChainID), zap.String("src_client_id", src.info.ClientID), @@ -388,6 +389,7 @@ func (mp *messageProcessor) sendBatchMessages( if err := dst.chainProvider.SendMessagesToMempool(broadcastCtx, msgs, mp.memo, ctx, callback); err != nil { errFields := []zapcore.Field{ + zap.String("path_name", src.info.PathName), zap.String("src_chain_id", src.info.ChainID), zap.String("dst_chain_id", dst.info.ChainID), zap.String("src_client_id", src.info.ClientID), @@ -442,6 +444,7 @@ func (mp *messageProcessor) sendSingleMessage( err := dst.chainProvider.SendMessagesToMempool(broadcastCtx, msgs, mp.memo, ctx, callback) if err != nil { errFields := []zapcore.Field{ + zap.String("path_name", src.info.PathName), zap.String("src_chain_id", src.info.ChainID), zap.String("dst_chain_id", dst.info.ChainID), zap.String("src_client_id", src.info.ClientID),