From 82d95c59a31c5f68f7ac48899806006f14088dab Mon Sep 17 00:00:00 2001 From: Elichai Turkel Date: Thu, 7 Jan 2021 11:17:13 +0200 Subject: [PATCH] Increase log files sizes (#1374) --- infrastructure/logger/logger.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infrastructure/logger/logger.go b/infrastructure/logger/logger.go index 0776fb79d..28a221cbd 100644 --- a/infrastructure/logger/logger.go +++ b/infrastructure/logger/logger.go @@ -159,7 +159,8 @@ var subsystemLoggers = map[string]*Logger{ // InitLog attaches log file and error log file to the backend log. func InitLog(logFile, errLogFile string) { - err := BackendLog.AddLogFileWithCustomRotator(logFile, LevelTrace, 100*1024, 4) + // 250 MB (MB=1000^2 bytes) + err := BackendLog.AddLogFileWithCustomRotator(logFile, LevelTrace, 1000*250, 32) if err != nil { fmt.Fprintf(os.Stderr, "Error adding log file %s as log rotator for level %s: %s", logFile, LevelTrace, err) os.Exit(1)