@@ -1133,8 +1133,19 @@ func (pc *pushConsumer) consumeMessageConcurrently(pq *processQueue, mq *primiti
11331133
11341134 consumeRT := time .Now ().Sub (beginTime )
11351135 if err != nil {
1136+ rlog .Warning ("consumeMessageCurrently error" , map [string ]interface {}{
1137+ rlog .LogKeyUnderlayError : err ,
1138+ rlog .LogKeyMessages : msgs ,
1139+ rlog .LogKeyMessageQueue : mq ,
1140+ rlog .LogKeyConsumerGroup : pc .consumerGroup ,
1141+ })
11361142 msgCtx .Properties [primitive .PropCtxType ] = string (primitive .ExceptionReturn )
11371143 } else if consumeRT >= pc .option .ConsumeTimeout {
1144+ rlog .Warning ("consumeMessageCurrently time out" , map [string ]interface {}{
1145+ rlog .LogKeyMessages : msgs ,
1146+ rlog .LogKeyMessageQueue : mq ,
1147+ rlog .LogKeyConsumerGroup : pc .consumerGroup ,
1148+ })
11381149 msgCtx .Properties [primitive .PropCtxType ] = string (primitive .TimeoutReturn )
11391150 } else if result == ConsumeSuccess {
11401151 msgCtx .Properties [primitive .PropCtxType ] = string (primitive .SuccessReturn )
@@ -1262,7 +1273,15 @@ func (pc *pushConsumer) consumeMessageOrderly(pq *processQueue, mq *primitive.Me
12621273 ctx = primitive .WithOrderlyCtx (ctx , orderlyCtx )
12631274
12641275 pq .lockConsume .Lock ()
1265- result , _ := pc .consumeInner (ctx , msgs )
1276+ result , err := pc .consumeInner (ctx , msgs )
1277+ if err != nil {
1278+ rlog .Warning ("consumeMessage orderly error" , map [string ]interface {}{
1279+ rlog .LogKeyUnderlayError : err ,
1280+ rlog .LogKeyMessages : msgs ,
1281+ rlog .LogKeyMessageQueue : mq .String (),
1282+ rlog .LogKeyConsumerGroup : pc .consumerGroup ,
1283+ })
1284+ }
12661285 pq .lockConsume .Unlock ()
12671286
12681287 if result == Rollback || result == SuspendCurrentQueueAMoment {
0 commit comments