summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-05-14 01:08:34 +0100
committerLauris BH <lauris@nix.lv>2019-05-14 03:08:34 +0300
commitc0fc6cd9a8ae438f5759f2ee88d395bf7e1dbe1d (patch)
tree6554ea1e3d6ba86747b3d6391d11084c98da45ca
parente63274ee09596de5446f92150b2afbad9664c5de (diff)
downloadgitea-c0fc6cd9a8ae438f5759f2ee88d395bf7e1dbe1d.tar.gz
gitea-c0fc6cd9a8ae438f5759f2ee88d395bf7e1dbe1d.zip
rotate unusual logs and stop stacktracing (#6935)
-rw-r--r--modules/log/log.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/log/log.go b/modules/log/log.go
index c0fd117967..d18996d48d 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -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