From 17cdd104cdf3a392937040bf109460f4482a0daa Mon Sep 17 00:00:00 2001 From: Felix Brucker Date: Sat, 1 Aug 2020 10:44:08 +0200 Subject: [PATCH] Default to no max log files limiting --- app.js | 2 +- lib/config.js | 2 +- lib/services/store.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 40c082d74..9e0189461 100644 --- a/app.js +++ b/app.js @@ -87,7 +87,7 @@ process.on('uncaughtException', (err) => { store.logging.level = config.logLevel || store.logging.level; store.logging.dir = config.logDir; -store.logging.maxFiles = config.logMaxFiles || store.logging.maxFiles; +store.logging.maxFiles = config.logMaxFiles; if (config.logToFile) { logger.enableFileLogging(); } diff --git a/lib/config.js b/lib/config.js index b3447128c..5c67d1baf 100644 --- a/lib/config.js +++ b/lib/config.js @@ -235,7 +235,7 @@ module.exports = class Config { } get logMaxFiles() { - return this.config.logMaxFiles || 14; + return this.config.logMaxFiles || null; } get transports() { diff --git a/lib/services/store.js b/lib/services/store.js index 8c43bc1f2..1e33cdf74 100644 --- a/lib/services/store.js +++ b/lib/services/store.js @@ -9,7 +9,7 @@ class Store { this.logging = { level: 'info', dir: null, - maxFiles: 14, + maxFiles: null, }; this.useColors = true; this._isInstalledGlobally = false;