From c56d994601fa028c7449d419728fe3234696c431 Mon Sep 17 00:00:00 2001 From: Apipol Niyomsak Date: Sun, 30 Apr 2017 00:10:04 +0700 Subject: [PATCH] config: fix can't config LOGGER_ENABLE and LOGGER_PRETTY LOGGER_ENABLE and LOGGER_PRETTY expect boolean value but receive a string PR-URL: https://github.com/makemek/Modcolle/pull/46 --- src/logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/logger.js b/src/logger.js index 0134111..16cba40 100644 --- a/src/logger.js +++ b/src/logger.js @@ -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' }) })