chore: use logger for all important logs
This commit is contained in:
parent
6f73606cfb
commit
21bdf5f60a
16 changed files with 51 additions and 39 deletions
|
|
@ -11,6 +11,7 @@ const options = require('./options')
|
|||
const ph = require('./plugin-helper')
|
||||
const layer2 = require('./layer2')
|
||||
const httpError = require('./route-helpers').httpError
|
||||
const logger = require('./logger')
|
||||
|
||||
const FETCH_INTERVAL = 5000
|
||||
const INSUFFICIENT_FUNDS_CODE = 570
|
||||
|
|
@ -50,7 +51,7 @@ function _balance (settings, cryptoCode) {
|
|||
return r
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(err)
|
||||
logger.error(err)
|
||||
return lastBalance[cryptoCode]
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue