Skip to content

Commit 755fe7c

Browse files
author
yancunju
committed
server/config/zap.go: fix max-age 名称错误
1 parent dff7ce1 commit 755fe7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/config/zap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Zap struct {
1313
EncodeLevel string `mapstructure:"encode-level" json:"encode-level" yaml:"encode-level"` // 编码级
1414
StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktrace-key" yaml:"stacktrace-key"` // 栈名
1515

16-
MaxAge int `mapstructure:"mintage" json:"max-age" yaml:"max-age"` // 日志留存时间
16+
MaxAge int `mapstructure:"max-age" json:"max-age" yaml:"max-age"` // 日志留存时间
1717
ShowLine bool `mapstructure:"show-line" json:"show-line" yaml:"show-line"` // 显示行
1818
LogInConsole bool `mapstructure:"log-in-console" json:"log-in-console" yaml:"log-in-console"` // 输出控制台
1919
}

0 commit comments

Comments
 (0)