diff options
author | Lauris BH <lauris@nix.lv> | 2018-11-07 06:48:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 06:48:53 +0200 |
commit | 8f8ff5a2959d81acd732f8b95ed1f6750a88fa20 (patch) | |
tree | cd0a75ea5a6adedf3b56970df4e6962dcb25a226 /modules/setting | |
parent | 078c404c3b0f283a242ad93b6a2f4cabb2575410 (diff) | |
download | gitea-8f8ff5a2959d81acd732f8b95ed1f6750a88fa20.tar.gz gitea-8f8ff5a2959d81acd732f8b95ed1f6750a88fa20.zip |
Remove maxlines option for file logger (#5282)
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 42ee102e0d..b31162c140 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -1342,10 +1342,9 @@ func newLogService() { } LogConfigs[i] = fmt.Sprintf( - `{"level":%s,"filename":"%s","rotate":%v,"maxlines":%d,"maxsize":%d,"daily":%v,"maxdays":%d}`, level, + `{"level":%s,"filename":"%s","rotate":%v,"maxsize":%d,"daily":%v,"maxdays":%d}`, level, logPath, sec.Key("LOG_ROTATE").MustBool(true), - sec.Key("MAX_LINES").MustInt(1000000), 1<<uint(sec.Key("MAX_SIZE_SHIFT").MustInt(28)), sec.Key("DAILY_ROTATE").MustBool(true), sec.Key("MAX_DAYS").MustInt(7)) @@ -1408,10 +1407,9 @@ func NewXORMLogService(disableConsole bool) { logPath = path.Join(filepath.Dir(logPath), "xorm.log") logConfigs = fmt.Sprintf( - `{"level":%s,"filename":"%s","rotate":%v,"maxlines":%d,"maxsize":%d,"daily":%v,"maxdays":%d}`, level, + `{"level":%s,"filename":"%s","rotate":%v,"maxsize":%d,"daily":%v,"maxdays":%d}`, level, logPath, sec.Key("LOG_ROTATE").MustBool(true), - sec.Key("MAX_LINES").MustInt(1000000), 1<<uint(sec.Key("MAX_SIZE_SHIFT").MustInt(28)), sec.Key("DAILY_ROTATE").MustBool(true), sec.Key("MAX_DAYS").MustInt(7)) |