Skip to content

Commit 98b638a

Browse files
committed
change log rotation activation property
1 parent 92c1538 commit 98b638a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logging.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async function initLoggerWithConfig(config) { 
108108
const logFile = config.get('logs:file');
109109
if (config.get('logs:file:active')) {
110110
rootLogger.debug('File active: ' + logFile.path);
111-
if (config.get('logs:file:isRotated')) {
111+
if (logFile.rotation.isActive) {
112112
const transport = new winston.transports.DailyRotateFile({
113113
filename: logFile.path + '.%DATE%',
114114
datePattern: 'YYYY-MM-DD',

0 commit comments

Comments
 (0)