diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-12 15:39:06 -0500 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-12 15:39:06 -0500 |
| commit | 15930182a7ca048a2472e0120650646542b31614 (patch) | |
| tree | a7450b94fb899fde5b0eaaa4cdc7a395a03493ad /src/util | |
| parent | bc549648b38698b7bd3cb71ab7e71bb17a3a68a1 (diff) | |
| download | ao-coverage-15930182a7ca048a2472e0120650646542b31614.tar.gz ao-coverage-15930182a7ca048a2472e0120650646542b31614.tar.bz2 ao-coverage-15930182a7ca048a2472e0120650646542b31614.zip | |
Use nullish-coalescing op for env var assignments
Diffstat (limited to 'src/util')
| -rw-r--r-- | src/util/logger.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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(), |
