Add stderr to logger config
This commit is contained in:
parent
d77b64f9b4
commit
0d5021eebc
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue