From ea9f39a803f316b957c8ed48e1a7ab9c0f5e3da7 Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sun, 24 May 2026 17:25:33 -0400 Subject: [PATCH] watchdogs: make healthy-state outputs always visible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit log() is gated on ENABLE_LOGGING — silent on normal runs. Healthy confirmations (All healthy, Network healthy, Storage healthy, WebGUI healthy) were invisible, making banners appear with nothing after them. Switched all four to plain echo so they show every cycle. --- Watchdogs/System/network_watchdog.sh | 2 +- Watchdogs/System/storage_watchdog.sh | 2 +- Watchdogs/System/webgui_watchdog.sh | 2 +- Watchdogs/docker_watchdog.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Watchdogs/System/network_watchdog.sh b/Watchdogs/System/network_watchdog.sh index 4380007..2e9c953 100755 --- a/Watchdogs/System/network_watchdog.sh +++ b/Watchdogs/System/network_watchdog.sh @@ -313,6 +313,6 @@ fi if [[ "$ISSUES" -gt 0 ]]; then exit 1 else - log "Network healthy ✅ ($(date '+%H:%M:%S'))" + echo "Network healthy ✅ ($(date '+%H:%M:%S'))" exit 0 fi diff --git a/Watchdogs/System/storage_watchdog.sh b/Watchdogs/System/storage_watchdog.sh index 1bfabfc..c111b76 100755 --- a/Watchdogs/System/storage_watchdog.sh +++ b/Watchdogs/System/storage_watchdog.sh @@ -435,5 +435,5 @@ if [[ "$WARNINGS" -gt 0 ]]; then echo "$ICON_WATCHDOG Warnings: $WARNINGS" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" else - log "Storage healthy ✅ ($(date '+%H:%M:%S'))" + echo "Storage healthy ✅ ($(date '+%H:%M:%S'))" fi diff --git a/Watchdogs/System/webgui_watchdog.sh b/Watchdogs/System/webgui_watchdog.sh index c964cbd..9c39168 100644 --- a/Watchdogs/System/webgui_watchdog.sh +++ b/Watchdogs/System/webgui_watchdog.sh @@ -163,7 +163,7 @@ log "WebGUI check — $WEBGUI_URL" # ── Healthy — completely silent ─────────────────────────────────────────────────────────────── if check_webgui; then - log "WebGUI responding — healthy ✅" + echo "WebGUI responding — healthy ✅" exit 0 fi diff --git a/Watchdogs/docker_watchdog.sh b/Watchdogs/docker_watchdog.sh index a5ecf7d..0bf5199 100755 --- a/Watchdogs/docker_watchdog.sh +++ b/Watchdogs/docker_watchdog.sh @@ -937,5 +937,5 @@ CYCLE_START=$(date +%s) echo "$ICON_TIME Duration: $(format_duration $(( CYCLE_END - CYCLE_START )))" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" else - log "All healthy ✅ ($(date '+%H:%M:%S'))" + echo "All healthy ✅ ($(date '+%H:%M:%S'))" fi \ No newline at end of file