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

@ -288,7 +288,7 @@ const notifyIfActive = (type, fnName, ...args) => {
if (!notificationCenter[fnName]) return Promise.reject(new Error(`Notification function ${fnName} for type ${type} does not exist`))
if (!(notificationSettings.active && notificationSettings[type])) return Promise.resolve()
return notificationCenter[fnName](...args)
}).catch(console.error)
}).catch(logger.error)
}
module.exports = {