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
|
|
@ -530,7 +530,7 @@ function plugins (settings, deviceId) {
|
|||
.catch(err => {
|
||||
updateTradeEntry(tradeEntry, newEntry, err)
|
||||
.then(() => {
|
||||
console.log(err)
|
||||
logger.error(err)
|
||||
throw err
|
||||
})
|
||||
})
|
||||
|
|
@ -754,7 +754,7 @@ function plugins (settings, deviceId) {
|
|||
|
||||
return db.any(sql)
|
||||
.then(rows => Promise.all(rows.map(sweepHdRow)))
|
||||
.catch(err => logger.error(err))
|
||||
.catch(logger.error)
|
||||
}
|
||||
|
||||
function getMachineNames () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue