Update logging to be more consistent
This commit is contained in:
parent
22bab34774
commit
ab89453d76
@ -33,11 +33,11 @@ process.on('exit', exitHandler.bind(null));
|
|||||||
process.on('SIGINT', exitHandler.bind(null, {exit:true}));
|
process.on('SIGINT', exitHandler.bind(null, {exit:true}));
|
||||||
|
|
||||||
tag_reader.on('error', function(err) {
|
tag_reader.on('error', function(err) {
|
||||||
console.log(`[tag_reader:error] ${err}`);
|
console.log(`[tag_reader] error=${err}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
player.on('error', function(err) {
|
player.on('error', function(err) {
|
||||||
console.log(`[player:error] ${err}`);
|
console.log(`[mpg321] error=${err}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
tag_reader.on('close', function(code, signal) {
|
tag_reader.on('close', function(code, signal) {
|
||||||
@ -109,7 +109,7 @@ player.stderr.on('data', (data) => {
|
|||||||
if (String(data).substr(0, 3) === "@F ") {
|
if (String(data).substr(0, 3) === "@F ") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(`[player:stderr] ${data}`);
|
console.log(`[mpg321] stderr ${data}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(logger('dev'))
|
app.use(logger('dev'))
|
||||||
|
Loading…
Reference in New Issue
Block a user