mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
zap
This commit is contained in:
parent
5a3cea56fa
commit
726f83a683
@ -3,8 +3,6 @@ package relation
|
|||||||
import (
|
import (
|
||||||
"OpenIM/pkg/common/constant"
|
"OpenIM/pkg/common/constant"
|
||||||
"OpenIM/pkg/common/db/table/relation"
|
"OpenIM/pkg/common/db/table/relation"
|
||||||
"OpenIM/pkg/common/log"
|
|
||||||
"OpenIM/pkg/common/tracelog"
|
|
||||||
"OpenIM/pkg/utils"
|
"OpenIM/pkg/utils"
|
||||||
"context"
|
"context"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
@ -2,7 +2,6 @@ package relation
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"OpenIM/pkg/common/db/table/relation"
|
"OpenIM/pkg/common/db/table/relation"
|
||||||
"OpenIM/pkg/common/tracelog"
|
|
||||||
"OpenIM/pkg/utils"
|
"OpenIM/pkg/utils"
|
||||||
"context"
|
"context"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
@ -43,7 +43,7 @@ func NewMConsumerGroup(consumerConfig *MConsumerGroupConfig, topics, addrs []str
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mc *MConsumerGroup) GetContextFromMsg(cMsg *sarama.ConsumerMessage, rootFuncName string) context.Context {
|
func (mc *MConsumerGroup) GetContextFromMsg(cMsg *sarama.ConsumerMessage, rootFuncName string) context.Context {
|
||||||
ctx := tracelog.NewCtx(rootFuncName, "")
|
ctx := tracelog.NewCtx(rootFuncName)
|
||||||
var operationID string
|
var operationID string
|
||||||
for _, v := range cMsg.Headers {
|
for _, v := range cMsg.Headers {
|
||||||
if string(v.Key) == constant.OperationID {
|
if string(v.Key) == constant.OperationID {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user