diff --git a/src/internals/index.js b/src/internals/index.js index e40fbdb7..c13b56a8 100644 --- a/src/internals/index.js +++ b/src/internals/index.js @@ -89,7 +89,7 @@ process.on('message', m => { }) }, error: error => { - logger.warn('Command error:', error) + logger.warn('Command error:', { error }) delete subscriptions[requestId] logger.onCmd('cmd.ERROR', id, Date.now() - startTime, error) process.send({ @@ -100,7 +100,7 @@ process.on('message', m => { }, }) } catch (error) { - logger.warn('Command error:', error) + logger.warn('Command impl error:', { error }) delete subscriptions[requestId] logger.onCmd('cmd.ERROR', id, Date.now() - startTime, error) process.send({