chore: use logger for all important logs

This commit is contained in:
André Sá 2021-10-08 19:04:24 +01:00
parent 6f73606cfb
commit 21bdf5f60a
16 changed files with 51 additions and 39 deletions

View file

@ -4,6 +4,7 @@ const jsonRpc = require('../../common/json-rpc')
const options = require('../../../options')
const BN = require('../../../bn')
const E = require('../../../error')
const logger = require('../../../logger')
const { utils: coinUtils } = require('lamassu-coins')
const cryptoRec = coinUtils.getCryptoCurrency('BTC')
@ -135,7 +136,7 @@ function fetchRBF (txId) {
return [txId, res['bip125-replaceable']]
})
.catch(err => {
if (err.code === -5) console.log(`${err.message}`)
if (err.code === -5) logger.error(`${err.message}`)
return [txId, true]
})
}