Merge pull request #872 from SiIky/chore/JbtevlHv/log_through_logger
Log through the logger
This commit is contained in:
commit
1dd8f4ff7e
18 changed files with 66 additions and 42 deletions
|
|
@ -531,7 +531,7 @@ function plugins (settings, deviceId) {
|
|||
.catch(err => {
|
||||
updateTradeEntry(tradeEntry, newEntry, err)
|
||||
.then(() => {
|
||||
console.log(err)
|
||||
logger.error(err)
|
||||
throw err
|
||||
})
|
||||
})
|
||||
|
|
@ -756,7 +756,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