Skip to content

Commit

Permalink
fix(env): default LOG_LEVEL
Browse files Browse the repository at this point in the history
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
jef committed Sep 25, 2020
1 parent 1bead47 commit 9636572
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env-example
Expand Up @@ -9,7 +9,7 @@ EMAIL_USERNAME=""
EMAIL_PASSWORD=""
HEADLESS=""
IN_STOCK_WAIT_TIME=""
#LOG_LEVEL=""
LOG_LEVEL=""
MICROCENTER_LOCATION=""
OPEN_BROWSER=""
PAGE_TIMEOUT=""
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Expand Up @@ -56,7 +56,7 @@ const browser = {
open: envOrBoolean(process.env.OPEN_BROWSER)
};

const logLevel = process.env.LOG_LEVEL ?? 'info';
const logLevel = envOrString(process.env.LOG_LEVEL, 'info');

const notifications = {
desktop: process.env.DESKTOP_NOTIFICATIONS === 'true',
Expand Down

0 comments on commit 9636572

Please sign in to comment.