Update the patch to use the logger interface

This commit is contained in:
Thomas P 2019-10-11 22:42:44 +02:00
parent 79f3625f61
commit ce243d5318
No known key found for this signature in database
GPG Key ID: 722E1405F9F15F5E
1 changed files with 2 additions and 2 deletions

View File

@ -178,9 +178,9 @@ module.exports = Client
*/
Client.prototype.cb = function(err, ret) {
if (err) {
console.error('Caught exception:', err)
this.log.error('Caught exception:', err)
} else {
console.log('Unhandled output:', ret)
this.log.info('Unhandled output:', ret)
}
}