From dbec256b36df8f50887a9f4de71663244748b5f3 Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Sun, 26 Apr 2026 23:06:03 +0200 Subject: [PATCH] Enhance deployment logging in cmd_deploy function for better error tracking Co-authored-by: Copilot --- panel/panelctl.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/panel/panelctl.sh b/panel/panelctl.sh index 4619baf..4732113 100644 --- a/panel/panelctl.sh +++ b/panel/panelctl.sh @@ -299,10 +299,18 @@ cmd_deploy() { validate_name "${name}" load_app "${name}" + echo "Starting deployment for app '${name}'" | systemd-cat -t panelctl -p info + cmd_render_route "${name}" - run_compose -f "${APP_COMPOSE_FILE}" up -d || fail "compose up failed" + + if ! run_compose -f "${APP_COMPOSE_FILE}" up -d 2>&1 | systemd-cat -t panelctl -p info; then + echo "Deployment failed for app '${name}'" | systemd-cat -t panelctl -p err + fail "compose up failed" + fi + maybe_reload_caddy + echo "Successfully deployed app '${name}'" | systemd-cat -t panelctl -p info echo "deployed app '${name}'" }