From f7172d2d97e5ebec0fa24304d6cac9ca63610315 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Wed, 4 Jul 2018 01:18:21 +0200 Subject: [PATCH] fix(logging): reduce default log level to info Reduce our loggers to `info` level by default to reduce the amount of noise that gets output on the console. --- app/utils/log.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/utils/log.js b/app/utils/log.js index 6aae5cff..ca38f74f 100644 --- a/app/utils/log.js +++ b/app/utils/log.js @@ -7,7 +7,11 @@ debugLogger.inspectOptions = { // Enable all zap logs if DEBUG has not been explicitly set. if (!process.env.DEBUG) { - debugLogger.debug.enable('zap:*') + // debugLogger.debug.enable('zap:*') + process.env.DEBUG = 'zap:*' +} +if (!process.env.DEBUG_LEVEL) { + process.env.DEBUG_LEVEL = 'info' } // Method to configure a logger instance with a specific namespace suffix.