Browse Source

log notification error

pull/246/head
LouisLam 3 years ago
parent
commit
aa2233eb2d
  1. 3
      server/model/monitor.js

3
server/model/monitor.js

@ -240,7 +240,8 @@ class Monitor extends BeanModel {
try {
await Notification.send(JSON.parse(notification.config), msg, await this.toJSON(), bean.toJSON())
} catch (e) {
console.error("Cannot send notification to " + notification.name)
console.error("Cannot send notification to " + notification.name);
console.log(e);
}
}
}

Loading…
Cancel
Save