From cdb0f25325b043fa900aa32b00b0870af27e57c8 Mon Sep 17 00:00:00 2001 From: Ilija Vukotic Date: Tue, 8 Oct 2024 11:30:13 -0500 Subject: [PATCH] Refactor debug logs in alarms.js --- routes/alarms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/alarms.js b/routes/alarms.js index 4937a09..8b3567a 100644 --- a/routes/alarms.js +++ b/routes/alarms.js @@ -227,7 +227,7 @@ router.post('/category', jsonParser, async (req, res) => { refresh: true, }); console.log('Category added.'); - console.debug(response.body); + console.debug(response); await loadAlarmTopology(); res.status(200).send('OK'); return; @@ -345,7 +345,7 @@ router.delete('/', async (req, res) => { }, refresh: true, }); - console.log(`delete response: ${response.body}`); + console.log(`delete response: ${response}`); if (response.body.deleted > 0) { await loadAlarmTopology(); res.status(200).send('OK');