From 87bcd69e83a37ac4a91a5d7b5ac3993cae335450 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Sat, 20 Jul 2024 06:08:50 -0700 Subject: [PATCH] change: add debugging prints --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5b6693c..2fc2ef0 100644 --- a/index.js +++ b/index.js @@ -675,13 +675,17 @@ function ready() { async function GetMessages() { - console.log(`CHECKING FOR NEW MESSAGES`); - const cfgTopics = store.get('topics'); const cfgInstanceURL = store.get('instanceURL'); const uri = `${cfgInstanceURL}/${cfgTopics}/json?since=${_Interval}s&poll=1`; const json = await GetMessageData(uri); + console.log(`CHECKING FOR NEW MESSAGES`); + console.log(`---------------------------------------------------------`); + console.log(`InstanceURL ........... ${cfgInstanceURL}`); + console.log(`Query ................. ${uri}`); + console.log(`Topics ................ ${cfgTopics}`); + /* Loop ntfy api results. only items with event = 'message' will be allowed through to display in a notification.