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

@ -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 () {