From 1d1d5ab26f2f74b12d0111ca22dae64cc626bfaf Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Wed, 18 Aug 2021 18:58:44 +0200 Subject: [PATCH] More logging --- src/transport/pushover.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/transport/pushover.js b/src/transport/pushover.js index 6ad5736..5f077f9 100644 --- a/src/transport/pushover.js +++ b/src/transport/pushover.js @@ -22,11 +22,12 @@ class PushoverTransport const response = await axios.post("https://api.pushover.net/1/messages.json", data); logger.verbose(`Pushover API returned status code ${response.status}`); - + return response.status === 200; } - catch + catch (err) { + logger.verbose(`Pushover API error: ${err}`); return false; } }