Logger set to fatal on test environment

This commit is contained in:
Raul Ochoa 2016-10-12 01:40:35 +02:00
parent e401c01d78
commit e1d0ffc7dd

View File

@ -4,7 +4,7 @@ var bunyan = require('bunyan');
function BatchLogger (path) { function BatchLogger (path) {
var stream = { var stream = {
level: 'info' level: process.env.NODE_ENV === 'test' ? 'fatal' : 'info'
}; };
if (path) { if (path) {
stream.path = path; stream.path = path;