watchdogs: make healthy-state outputs always visible

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.
This commit is contained in:
Gmer4Lfe
2026-05-24 17:25:33 -04:00
parent afd9129869
commit ea9f39a803
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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