Changed || to ?? to detect undefined env
parent
184432f642
commit
93f78aafe0
@ -1,6 +1,6 @@
|
||||
const log4js = require("log4js");
|
||||
|
||||
const logger = log4js.getLogger();
|
||||
logger.level = process.env.logLevel || "INFO";
|
||||
logger.level = process.env.logLevel ?? "INFO";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue