From 800050a69524c46f3fce8467d19ee8e7b1c11b6e Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <me@adhisimon.org> Date: Mon, 22 Aug 2016 15:52:10 +0700 Subject: [PATCH] log on error --- xmlout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlout.js b/xmlout.js index abecc22..6c916a0 100644 --- a/xmlout.js +++ b/xmlout.js @@ -96,7 +96,7 @@ function _topupRequest(task) { // Results of the method response if (error && (error.code == 'ECONNREFUSED' || error.code == 'EHOSTUNREACH')) { - logger.warn('XMLRPC Client Error', {requestId: task['requestId'], errorMessage: error}); + logger.warn('XMLRPC Client Error', {requestId: task['requestId'], err: error}); callbackReport(task['requestId'], '91', 'Gangguan koneksi ke suplier: ' + error); return; } -- 1.9.0