From e1d0ffc7dd7848b1c2e335773e88da538080140c Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Wed, 12 Oct 2016 01:40:35 +0200 Subject: [PATCH] Logger set to fatal on test environment --- batch/batch-logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch/batch-logger.js b/batch/batch-logger.js index 775976e7..05dc54f8 100644 --- a/batch/batch-logger.js +++ b/batch/batch-logger.js @@ -4,7 +4,7 @@ var bunyan = require('bunyan'); function BatchLogger (path) { var stream = { - level: 'info' + level: process.env.NODE_ENV === 'test' ? 'fatal' : 'info' }; if (path) { stream.path = path;