Increase log files sizes (#1374)

This commit is contained in:
Elichai Turkel 2021-01-07 11:17:13 +02:00 committed by GitHub
parent 79c5d4595e
commit 82d95c59a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,8 @@ var subsystemLoggers = map[string]*Logger{
// InitLog attaches log file and error log file to the backend log. // InitLog attaches log file and error log file to the backend log.
func InitLog(logFile, errLogFile string) { 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 { if err != nil {
fmt.Fprintf(os.Stderr, "Error adding log file %s as log rotator for level %s: %s", logFile, LevelTrace, err) fmt.Fprintf(os.Stderr, "Error adding log file %s as log rotator for level %s: %s", logFile, LevelTrace, err)
os.Exit(1) os.Exit(1)