Skip to content

Commit

Permalink
Merge pull request ccxt#1704 from mkutny/exch
Browse files Browse the repository at this point in the history
Exchange: parseJson: verbose logging is now reachable
  • Loading branch information
kroitor authored Feb 1, 2018
2 parents f8e687b + 97b3a37 commit 462dbdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/base/Exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@ module.exports = class Exchange {

} catch (e) {

if (this.verbose)
console.log ('parseJson:\n', this.id, method, url, 'error', e, "response body:\n'" + responseBody + "'\n")

let maintenance = responseBody.match (/offline|busy|retry|wait|unavailable|maintain|maintenance|maintenancing/i)
let ddosProtection = responseBody.match (/cloudflare|incapsula|overload/i)

Expand All @@ -385,9 +388,6 @@ module.exports = class Exchange {
throw new error ([ this.id, method, url, details ].join (' '))
}

if (this.verbose)
console.log ('parseJson:\n', this.id, method, url, 'error', e, "response body:\n'" + responseBody + "'\n")

throw e
}
}
Expand Down

0 comments on commit 462dbdf

Please sign in to comment.