Update logging to be more consistent

This commit is contained in:
Annika Backstrom 2017-04-08 02:01:50 +00:00
parent 22bab34774
commit ab89453d76
1 changed files with 3 additions and 3 deletions

View File

@ -33,11 +33,11 @@ process.on('exit', exitHandler.bind(null));
process.on('SIGINT', exitHandler.bind(null, {exit:true}));
tag_reader.on('error', function(err) {
console.log(`[tag_reader:error] ${err}`);
console.log(`[tag_reader] error=${err}`);
});
player.on('error', function(err) {
console.log(`[player:error] ${err}`);
console.log(`[mpg321] error=${err}`);
});
tag_reader.on('close', function(code, signal) {
@ -109,7 +109,7 @@ player.stderr.on('data', (data) => {
if (String(data).substr(0, 3) === "@F ") {
return;
}
console.log(`[player:stderr] ${data}`);
console.log(`[mpg321] stderr ${data}`);
});
app.use(logger('dev'))