From ab89453d76bea3e76acbd18a6521d50aab1edece Mon Sep 17 00:00:00 2001 From: Annika Backstrom Date: Sat, 8 Apr 2017 02:01:50 +0000 Subject: [PATCH] Update logging to be more consistent --- player.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player.js b/player.js index 2087b08..be56e4b 100644 --- a/player.js +++ b/player.js @@ -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'))