Logger set to fatal on test environment
This commit is contained in:
parent
e401c01d78
commit
e1d0ffc7dd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user