From aa2233eb2d6ff58d9abe8b196d20b08504131459 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 23 Aug 2021 20:57:42 +0800 Subject: [PATCH] log notification error --- server/model/monitor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index de9347c64..17ab27795 100644 --- a/server/model/monitor.js +++ b/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); } } }