From 8f8ff5a2959d81acd732f8b95ed1f6750a88fa20 Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Wed, 7 Nov 2018 06:48:53 +0200 Subject: Remove maxlines option for file logger (#5282) --- modules/setting/setting.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/setting') 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<