loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix logger refactoring regression: manager logging add (#24847)

The `rotate` option is optional.

Test result:

![image](https://github.com/go-gitea/gitea/assets/2114189/7cff8207-dcf3-4988-adef-247f1c9316e7)

authored by

wxiaoguang and committed by
GitHub
979f0805 21add7ea

+1 -1
+1 -1
routers/private/manager.go
··· 155 155 writerOption := log.WriterFileOption{} 156 156 fileName, _ := opts.Config["filename"].(string) 157 157 writerOption.FileName = setting.LogPrepareFilenameForWriter(fileName, opts.Writer+".log") 158 - writerOption.LogRotate = opts.Config["rotate"].(bool) 158 + writerOption.LogRotate, _ = opts.Config["rotate"].(bool) 159 159 maxSizeShift, _ := opts.Config["maxsize"].(int) 160 160 if maxSizeShift == 0 { 161 161 maxSizeShift = 28