From 15930182a7ca048a2472e0120650646542b31614 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Thu, 12 Dec 2019 15:39:06 -0500 Subject: Use nullish-coalescing op for env var assignments --- src/util/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/logger.ts') diff --git a/src/util/logger.ts b/src/util/logger.ts index 27eeefe..2fc0749 100644 --- a/src/util/logger.ts +++ b/src/util/logger.ts @@ -4,7 +4,7 @@ import * as Transport from "winston-transport"; const { combine, splat, timestamp, label, colorize, printf } = winston.format; const { Console } = winston.transports; -const LOG_LEVEL = process.env.LOG_LEVEL || "info"; +const LOG_LEVEL = process.env.LOG_LEVEL ?? "info"; const consoleFormat = combine( colorize(), -- cgit