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
|
|
@ -289,7 +289,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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue