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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user