Add stderr to logger config

This commit is contained in:
Misha Wolfson 2016-12-14 17:04:30 -05:00
parent d77b64f9b4
commit 0d5021eebc

View file

@ -16,6 +16,8 @@ if (config.get('bunyan') || config.get(env + ':use_bunyan')) {
for (var i = 0; i < settings.streams.length; i++) {
if (settings.streams[i].stream === 'process.stdout') {
settings.streams[i].stream = process.stdout;
} else if (settings.streams[i].stream === 'process.stderr') {
settings.streams[i].stream = process.stderr;
}
}