mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Backing down on some of the debugger statements
This commit is contained in:
@@ -2055,23 +2055,19 @@ class Slp {
|
||||
res.status(200)
|
||||
return res.json({ slpUtxos: utxos })
|
||||
} catch (err) {
|
||||
console.log('ping01')
|
||||
wlogger.error('Error in slp.js/hydrateUtxos().', err)
|
||||
console.error('Error in slp.js/hydrateUtxos().', err)
|
||||
|
||||
console.log('ping02')
|
||||
// console.error('Error in slp.js/hydrateUtxos().', err)
|
||||
|
||||
// Decode the error message.
|
||||
const { msg, status } = routeUtils.decodeError(err)
|
||||
console.log('msg: ', msg)
|
||||
console.log('status: ', status)
|
||||
// console.log('msg: ', msg)
|
||||
// console.log('status: ', status)
|
||||
|
||||
if (msg) {
|
||||
res.status(status)
|
||||
return res.json({ error: msg, message: msg, success: false })
|
||||
}
|
||||
|
||||
console.log('ping03')
|
||||
|
||||
res.status(500)
|
||||
return res.json({
|
||||
error: 'Undetermined error in hydrateUtxos()',
|
||||
|
||||
@@ -156,7 +156,7 @@ class RouteUtils {
|
||||
|
||||
// Handle 429 errors thrown by nginx
|
||||
if (err.error) {
|
||||
console.log('decodeError: err: ', err)
|
||||
// console.log('decodeError: err: ', err)
|
||||
|
||||
if (err.error.includes('429 Too Many Requests')) {
|
||||
const internalMsg =
|
||||
|
||||
Reference in New Issue
Block a user