Skip to content

Commit

Permalink
fix: reverse the check for LAMBDALOG_SILENT env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleRoss committed Apr 12, 2021
1 parent 952b62d commit 95828b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/LambdaLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class LambdaLog extends EventEmitter {
debug: false,
dev: false,
silent: ![undefined, null, '0', 'no', 'false'].includes(process.env.LAMBDALOG_SILENT),
silent: ['true', 'yes', 'y', '1'].includes(process.env.LAMBDALOG_SILENT),
replacer: null,
logHandler: console, ...options };

Expand Down

0 comments on commit 95828b1

Please sign in to comment.