From 67d18f643ddf359d0d3b1b75fb995f7adabebd2e Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Mon, 12 Jan 2026 13:56:28 +0100 Subject: [PATCH] make the logging of uptime_calc more consistent witht he rest of the log messages --- server/uptime-calculator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/uptime-calculator.js b/server/uptime-calculator.js index 94d7e7733..d0ad17425 100644 --- a/server/uptime-calculator.js +++ b/server/uptime-calculator.js @@ -217,7 +217,7 @@ class UptimeCalculator { let flatStatus = this.flatStatus(status); if (flatStatus === DOWN && ping > 0) { - log.debug("uptime-calc", "The ping is not effective when the status is DOWN"); + log.debug("uptime_calc", "The ping is not effective when the status is DOWN"); } let divisionKey = this.getMinutelyKey(date); @@ -295,7 +295,7 @@ class UptimeCalculator { // Don't store data in test mode if (process.env.TEST_BACKEND) { - log.debug("uptime-calc", "Skip storing data in test mode"); + log.debug("uptime_calc", "Skip storing data in test mode"); return date; } @@ -358,7 +358,7 @@ class UptimeCalculator { if (!this.migrationMode) { // Remove the old data // TODO: Improvement: Convert it to a job? - log.debug("uptime-calc", "Remove old data"); + log.debug("uptime_calc", "Remove old data"); await R.exec("DELETE FROM stat_minutely WHERE monitor_id = ? AND timestamp < ?", [ this.monitorID, this.getMinutelyKey(currentDate.subtract(this.statMinutelyKeepHour, "hour")),