Browse Source

rotate unusual logs and stop stacktracing (#6935)

tags/v1.21.12.1
zeripath Lauris BH 6 years ago
parent
commit
c0fc6cd9a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/log/log.go

+ 1
- 1
modules/log/log.go 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


Loading…
Cancel
Save