mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: closes #12699, allow boolean false for log-colorize
This commit is contained in:
@@ -15,7 +15,7 @@ function setupWinston() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const formats = [];
|
const formats = [];
|
||||||
if (nconf.get('log-colorize') !== 'false') {
|
if (nconf.get('log-colorize') !== 'false' && nconf.get('log-colorize') !== false) {
|
||||||
formats.push(winston.format.colorize());
|
formats.push(winston.format.colorize());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user