From 93f78aafe08088d2e8b032f23fd43fc0d96f44e1 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Wed, 24 Nov 2021 01:06:09 +0100 Subject: [PATCH] Changed || to ?? to detect undefined env --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 8602d39..2680701 100644 --- a/src/main.js +++ b/src/main.js @@ -1,6 +1,6 @@ const log4js = require("log4js"); const logger = log4js.getLogger(); -logger.level = process.env.logLevel || "INFO"; +logger.level = process.env.logLevel ?? "INFO";