We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21add7e commit 979f080Copy full SHA for 979f080
routers/private/manager.go
@@ -155,7 +155,7 @@ func AddLogger(ctx *context.PrivateContext) {
155
writerOption := log.WriterFileOption{}
156
fileName, _ := opts.Config["filename"].(string)
157
writerOption.FileName = setting.LogPrepareFilenameForWriter(fileName, opts.Writer+".log")
158
- writerOption.LogRotate = opts.Config["rotate"].(bool)
+ writerOption.LogRotate, _ = opts.Config["rotate"].(bool)
159
maxSizeShift, _ := opts.Config["maxsize"].(int)
160
if maxSizeShift == 0 {
161
maxSizeShift = 28
0 commit comments