Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow no timestamp in log directory
Browse files Browse the repository at this point in the history
azuwis committed Sep 11, 2018
1 parent f463ca6 commit 40ed0f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util/logger.js
Original file line number Diff line number Diff line change
@@ -22,7 +22,8 @@ if (settings.get().advanced && settings.get().advanced.log_directory) {
}

// Add start time to directory.
const directory = path.join(rootDirectory, moment(Date.now()).format('YYYY-MM-DD.HH:mm:ss'));
const directory = (settings.get().advanced && settings.get().advanced.log_directory_timestamp === false) ?
rootDirectory : path.join(rootDirectory, moment(Date.now()).format('YYYY-MM-DD.HH:mm:ss'));

// Make sure that log directoy exsists
fx.mkdirSync(directory);

0 comments on commit 40ed0f0

Please sign in to comment.