Commit f86e547fd8ab552e11124c2fcdcd270cc752fc68

Authored by Adhidarma Hadiwinoto
1 parent 6b2bd52886
Exists in master

more logging

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

... ... @@ -71,6 +71,7 @@ function topupRequest(task, retry) {
71 71 }
72 72 };
73 73  
  74 + logger.verbose('Requesting to partner', {postRequest: postRequest, payload: payload_xml});
74 75 var buffer = "";
75 76 var req = http.request( postRequest, function( res ) {
76 77  
... ... @@ -94,7 +95,7 @@ function topupRequest(task, retry) {
94 95  
95 96 function topupResponseHandler(body, request_id) {
96 97 logger.info('topupResponseHandler', {body: body, request_id: request_id});
97   -
  98 +
98 99 xml2js(body, function (err, result) {
99 100 if (err) {
100 101 logger.warn('topupResponseHandler', {body: body});