diff --git a/pkg/common/trace_log/ctx.go b/pkg/common/trace_log/ctx.go index 73e4a9606..23ce182fb 100644 --- a/pkg/common/trace_log/ctx.go +++ b/pkg/common/trace_log/ctx.go @@ -4,7 +4,6 @@ import ( "Open_IM/pkg/common/constant" "Open_IM/pkg/common/log" "context" - "encoding/json" "google.golang.org/grpc/status" "strings" @@ -124,11 +123,6 @@ type FuncInfo struct { type Args map[string]interface{} -func (a Args) String() string { - bytes, _ := json.Marshal(a) - return string(bytes) -} - func SetContextInfo(ctx context.Context, funcName string, err error, args ...interface{}) { t := ctx.Value(TraceLogKey).(*ApiInfo) var funcInfo FuncInfo