Force stdout writing if IS_JOB.

This commit is contained in:
zkldi
2021-11-25 05:37:30 +00:00
parent 4ddd36ac08
commit 954bb06f10
+2 -1
View File
@@ -133,7 +133,8 @@ if (ServerConfig.LOGGER_CONFIG.FILE) {
);
}
if (ServerConfig.LOGGER_CONFIG.CONSOLE) {
// If this is a job, force stdout writing no matter what.
if (ServerConfig.LOGGER_CONFIG.CONSOLE || process.env.IS_JOB) {
tports.push(
new transports.Console({
format: consoleFormatRoute,