Browse Source

Better logs for internal errors

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
3e47365af1
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 4
      src/internals/index.js

4
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({

Loading…
Cancel
Save