Changed || to ?? to detect undefined env

f_influx-checks
Ruakij 3 years ago
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…
Cancel
Save