From 3e47365af1ecb738fa5d32ae24f2676e9befef3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Tue, 1 Jan 2019 20:40:48 +0100 Subject: [PATCH] Better logs for internal errors --- src/internals/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({