Commit 71f803999359a5cf00366ab3a9f1f5451c002e6d
1 parent
fab2dbcf1f
Exists in
master
more verbose on topUpReport error
Showing 1 changed file with 6 additions and 1 deletions Side-by-side Diff
xmlrpc-server.js
... | ... | @@ -349,7 +349,12 @@ function sendTopUpReport(reverseUrls, params, urlIdx, retry) { |
349 | 349 | //return; |
350 | 350 | |
351 | 351 | if (topUpReportError) { |
352 | - logger.warn('Error sending topUpReport retrying another url (if available)', {error: topUpReportError}); | |
352 | + logger.warn('Error sending topUpReport retrying another url (if available)' + topUpReportError, {error: topUpReportError}); | |
353 | + | |
354 | + if (topUpReportError.body) { | |
355 | + logger.warn('Response body: ' + body); | |
356 | + } | |
357 | + | |
353 | 358 | sendTopUpReport(reverseUrls, params, ++urlIdx, retry); |
354 | 359 | return; |
355 | 360 | } |