Skip to content

Commit

Permalink
config: fix can't config LOGGER_ENABLE and LOGGER_PRETTY
Browse files Browse the repository at this point in the history
LOGGER_ENABLE and LOGGER_PRETTY expect boolean value but receive a
string

PR-URL: #46
  • Loading branch information
makemek committed Apr 29, 2017
1 parent 42d7d69 commit c56d994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const loggers = {}
labels.forEach(label => {
loggers[label] = pino({
name: label,
enabled: LOGGER_ENABLE,
enabled: LOGGER_ENABLE === 'true',
level: LOGGER_LEVEL,
prettyPrint: LOGGER_PRETTY
prettyPrint: LOGGER_PRETTY === 'true'
})
})

Expand Down

0 comments on commit c56d994

Please sign in to comment.