Orchestrators echo/log audit pass

Status conclusions, clean-cycle summaries, skipped-feature lines, and phase
completion results → echo across all nine orchestrator scripts. Per-share,
per-job, and per-script detail lines inside loops remain log. README-Orchestrators:
added Output Tiers section.
This commit is contained in:
Gmer4Lfe
2026-05-21 17:25:29 -04:00
parent 3770bf80e7
commit ef8ef436cf
9 changed files with 43 additions and 23 deletions
+5 -5
View File
@@ -120,12 +120,12 @@ PASS=()
FAIL=()
if ! check_rsync_enabled "CRITICAL"; then
log "Critical rsync disabled — skipping sync, running partnership check only"
echo "Critical rsync disabled — skipping sync, running partnership check only"
elif [[ ${#CRITICAL_SYNC_SHARES[@]} -eq 0 ]]; then
warn "CRITICAL_RSYNC_ENABLED=true but CRITICAL_SYNC_SHARES is empty for $MY_ID"
warn "Check HOST*_CRITICAL_SYNC_SHARES in master_host*.conf"
else
log "Critical sync — $MY_ID$REMOTE_ID$(date '+%H:%M:%S')"
echo "Critical sync — $MY_ID$REMOTE_ID$(date '+%H:%M:%S')"
# Build dry-run flag to pass through
RSYNC_DRY=""
@@ -204,7 +204,7 @@ if [[ "${PARTNERSHIP_ENABLED:-false}" == true ]]; then
--check --remote-unseen $PARTNER_DRY
fi
else
log "Partnership disabled — skipping check"
echo "Partnership disabled — skipping check"
fi
# ==============================================================================================
@@ -219,14 +219,14 @@ if [[ ${#FAIL[@]} -gt 0 ]]; then
echo "━━━━━ $ICON_SUMMARY CRITICAL SYNC SUMMARY ━━━━━"
echo "$ICON_HOST Identity: $MY_ID ($LOCAL_SERVER_NAME)"
echo "$ICON_TIME Duration: $DURATION"
[[ ${#PASS[@]} -gt 0 ]] && log "Synced: ${PASS[*]}"
[[ ${#PASS[@]} -gt 0 ]] && echo "Synced: ${PASS[*]}"
echo "$ICON_ERROR Failed: ${FAIL[*]}"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
notify "Critical sync failed on $(hostname) ($MY_ID) — ${FAIL[*]}" \
"Critical Sync" "warning"
exit 1
else
log "Critical sync complete — $MY_ID${DURATION}${#PASS[@]} share(s)"
echo "Critical sync complete — $MY_ID${DURATION}${#PASS[@]} share(s)"
fi
exit 0