File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ import (
24
24
rotatelogs "github.com/openimsdk/tools/log/file-rotatelogs"
25
25
"github.com/openimsdk/tools/utils/stringutil"
26
26
27
- "github.com/openimsdk/protocol/constant"
28
- "github.com/openimsdk/tools/mcontext"
29
27
"go.uber.org/zap"
30
28
"go.uber.org/zap/zapcore"
29
+
30
+ "github.com/openimsdk/protocol/constant"
31
+ "github.com/openimsdk/tools/mcontext"
31
32
)
32
33
33
34
type LogFormatter interface {
@@ -393,8 +394,6 @@ func (l *ZapLogger) kvAppend(ctx context.Context, keysAndValues []any) []any {
393
394
for i := 1 ; i < len (keysAndValues ); i += 2 {
394
395
if s , ok := keysAndValues [i ].(interface { String () string }); ok {
395
396
keysAndValues [i ] = s .String ()
396
- } else {
397
- keysAndValues [i ] = fmt .Sprintf ("%+v" , keysAndValues [i ])
398
397
}
399
398
}
400
399
You can’t perform that action at this time.
0 commit comments