From 2df1d8c9fa7f6e9ef69d7b5433d72e909ae4d9be Mon Sep 17 00:00:00 2001 From: ProtocolWarden <32967198+ProtocolWarden@users.noreply.github.com> Date: Thu, 21 May 2026 07:15:54 -0400 Subject: [PATCH] add loop-log subcommand to operations-center.sh Tails logs/local/loop_controller.log. Mirrors vf.sh loop-log. Co-Authored-By: Claude Sonnet 4.6 --- .console/log.md | 4 ++++ scripts/operations-center.sh | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.console/log.md b/.console/log.md index a6f7e59e..5eaf2d10 100644 --- a/.console/log.md +++ b/.console/log.md @@ -1,5 +1,9 @@ # Log +## 2026-05-21 — Add loop-log to operations-center.sh + +Added loop-log subcommand (tail -f loop_controller.log). Mirrors vf.sh loop-log. + ## 2026-05-21 — Add loop-start/stop/status to operations-center.sh Added loop_start, loop_stop, loop_status functions and case entries to diff --git a/scripts/operations-center.sh b/scripts/operations-center.sh index 19730307..24640001 100755 --- a/scripts/operations-center.sh +++ b/scripts/operations-center.sh @@ -163,6 +163,7 @@ Usage: scripts/operations-center.sh loop-start scripts/operations-center.sh loop-stop scripts/operations-center.sh loop-status + scripts/operations-center.sh loop-log Environment: OPERATIONS_CENTER_CONFIG Override config path (default: ${CONFIG_PATH}) @@ -255,6 +256,10 @@ loop_status() { python3 "${ROOT_DIR}/tools/loop/controller.py" --status } +loop_log() { + tail -f "${LOOP_LOG}" +} + watch_pid_file() { local role="$1" echo "${WATCH_DIR}/${role}.pid" @@ -584,7 +589,7 @@ shift || true cd "${ROOT_DIR}" # Skip janitor for read-only / stop commands — they're fast and don't need it. case "${cmd}" in - watch-all-status|dev-status|watch-all-stop|watch-stop|watchdog-stop|plane-status|providers-status|doctor|status|loop-start|loop-stop|loop-status) ;; + watch-all-status|dev-status|watch-all-stop|watch-stop|watchdog-stop|plane-status|providers-status|doctor|status|loop-start|loop-stop|loop-status|loop-log) ;; *) run_janitor ;; esac @@ -909,6 +914,9 @@ PYEOF loop-status) loop_status ;; + loop-log) + loop_log + ;; *) usage exit 1