Skip to content

Commit e02f26b

Browse files
committed
Change log_maxfilesrotation to uint32 to avoid anyone with more than 256 files from hitting errors
1 parent 32a0e81 commit e02f26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ type LoggingConfig struct {
127127
LogBackcompat bool `yaml:"log_backcompat" json:"log_backcompat"`
128128
LogFilename string `yaml:"log_filename" json:"log_filename"`
129129
LogLevel string `yaml:"log_level" json:"log_level"`
130-
LogMaxFilesRotation uint8 `yaml:"log_maxfilesrotation" json:"log_maxfilesrotation"`
130+
LogMaxFilesRotation uint32 `yaml:"log_maxfilesrotation" json:"log_maxfilesrotation"`
131131
LogMaxBytesRotation uint32 `yaml:"log_maxbytesrotation" json:"log_maxbytesrotation"`
132132
LogUseGzip bool `yaml:"log_use_gzip" json:"log_use_gzip"`
133133
LogSyslog bool `yaml:"log_syslog" json:"log_syslog"`

0 commit comments

Comments
 (0)