Merge pull request #872 from SiIky/chore/JbtevlHv/log_through_logger

Log through the logger
This commit is contained in:
Rafael Taranto 2021-11-11 18:32:06 +00:00 committed by GitHub
commit 1dd8f4ff7e
18 changed files with 66 additions and 42 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]
})
}