From 3fa96b0700c544e97a25fc023be04949082ee115 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Mon, 17 Apr 2023 20:12:52 +0800 Subject: [PATCH] caller --- pkg/common/log/zap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/common/log/zap.go b/pkg/common/log/zap.go index 167573402..79fe4ac44 100644 --- a/pkg/common/log/zap.go +++ b/pkg/common/log/zap.go @@ -131,7 +131,7 @@ func customCallerEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayE enc.AppendString("\x1b[32m") enc.AppendString(caller.Function) enc.AppendString(":") - enc.AppendInt(int64(caller.Line)) + enc.AppendInt(caller.Line) enc.AppendString("\x1b[0m") }