From 64d83d90487499836c378f2057611ecbafae2dc6 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Sun, 22 May 2022 21:31:10 +0800 Subject: [PATCH] log --- internal/msg_transfer/logic/online_history_msg_handler.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/msg_transfer/logic/online_history_msg_handler.go b/internal/msg_transfer/logic/online_history_msg_handler.go index 12b02b50b..e41c61611 100644 --- a/internal/msg_transfer/logic/online_history_msg_handler.go +++ b/internal/msg_transfer/logic/online_history_msg_handler.go @@ -415,7 +415,11 @@ func (och *OnlineHistoryConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupS //och.TriggerCmd(OnlineTopicBusy) select { case msg := <-claim.Messages(): - log.NewDebug("", "claim.Messages ", msg, *msg) + if msg == nil { + log.NewDebug("", "claim.Messages ", msg) + continue + } + cMsg = append(cMsg, msg) if len(cMsg) >= 1000 { ccMsg := make([]*sarama.ConsumerMessage, 0, 1000)