Skip to content
This repository has been archived by the owner on Jul 18, 2021. It is now read-only.

Commit

Permalink
Default to no max log files limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbrucker committed Aug 1, 2020
1 parent 22c9d75 commit 17cdd10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ module.exports = class Config {
}

get logMaxFiles() {
return this.config.logMaxFiles || 14;
return this.config.logMaxFiles || null;
}

get transports() {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Store {
this.logging = {
level: 'info',
dir: null,
maxFiles: 14,
maxFiles: null,
};
this.useColors = true;
this._isInstalledGlobally = false;
Expand Down

0 comments on commit 17cdd10

Please sign in to comment.