0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 20:44:36 +01:00

rotate unusual logs and stop stacktracing (#6935)

This commit is contained in:
zeripath 2019-05-14 01:08:34 +01:00 committed by Lauris BH
parent e63274ee09
commit c0fc6cd9a8

View file

@ -82,7 +82,7 @@ func NewGitLogger(logPath string) {
}
GitLogger = newLogger("git", 0)
GitLogger.SetLogger("file", "file", fmt.Sprintf(`{"level":"TRACE","filename":"%s","rotate":false}`, logPath))
GitLogger.SetLogger("file", "file", fmt.Sprintf(`{"level":"TRACE","filename":"%s","rotate":true,"maxsize":%d,"daily":true,"maxdays":7,"compress":true,"compressionLevel":-1, "stacktraceLevel":"NONE"}`, logPath, 1<<28))
}
// GetLevel returns the minimum logger level