Skip to content

Commit 1a56963

Browse files
committed
Update zap.go
1 parent 0cb368d commit 1a56963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/core/internal/zap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (z *_zap) GetEncoderCore(l zapcore.Level, level zap.LevelEnablerFunc) zapco
5454
// CustomTimeEncoder 自定义日志输出时间格式
5555
// Author [SliverHorn](https://github.com/SliverHorn)
5656
func (z *_zap) CustomTimeEncoder(t time.Time, encoder zapcore.PrimitiveArrayEncoder) {
57-
encoder.AppendString(t.Format(global.GVA_CONFIG.Zap.Prefix + "2006/01/02 - 15:04:05.000"))
57+
encoder.AppendString(global.GVA_CONFIG.Zap.Prefix + t.Format("2006/01/02 - 15:04:05.000"))
5858
}
5959

6060
// GetZapCores 根据配置文件的Level获取 []zapcore.Core

0 commit comments

Comments
 (0)