From ab4edf20928763f415d28865f5e4754cf6546196 Mon Sep 17 00:00:00 2001 From: Aram Akhavan Date: Thu, 26 May 2022 21:45:56 -0700 Subject: [PATCH] Fix log.debug calls --- server/model/monitor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 1bde1cb7..b5b20f54 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -348,7 +348,7 @@ class Monitor extends BeanModel { bean.msg = dnsMessage; bean.status = UP; } else if (this.type === "push") { // Type: Push - log.debug(`[${this.name}] Checking monitor at ${dayjs().format("YYYY-MM-DD HH:mm:ss.SSS")}`); + log.debug("monitor", `[${this.name}] Checking monitor at ${dayjs().format("YYYY-MM-DD HH:mm:ss.SSS")}`); const bufferTime = 1000; // 1s buffer to accommodate clock differences // Fix #922, since previous heartbeat could be inserted by API, it should get from database previousBeat = await Monitor.getPreviousHeartbeat(this.id); @@ -368,7 +368,7 @@ class Monitor extends BeanModel { } // No need to insert successful heartbeat for push type, so end here retries = 0; - log.debug(`[${this.name}] timeout = ${timeout}`); + log.debug("monitor", `[${this.name}] timeout = ${timeout}`); this.heartbeatInterval = setTimeout(beat, timeout); return; }