From 7b34586730531557c7eb4aab825dfae81f569079 Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 25 Nov 2020 21:34:15 +0100 Subject: [PATCH] Log a warning if the setup check fails A collective can disable the endpoint at any time. So informing about a misconfigured or disabled endpoint on start for each known collective. Issue: #470 --- tools/consumedir.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/consumedir.sh b/tools/consumedir.sh index c4d4169e..e594ddc5 100755 --- a/tools/consumedir.sh +++ b/tools/consumedir.sh @@ -346,8 +346,8 @@ checkSetup() { trace "Checking integration endpoint: $CURL_CMD $OPTS "$url"" status=$($CURL_CMD $OPTS "$url") if [ "$status" != "200" ]; then - echo "[ERROR] $status response integration endpoint: $CURL_CMD $OPTS $url" - exit 1 + echo "[WARN] Collective '$(basename $collective)' failed the setup check." + echo "[WARN] $status response, command: $CURL_CMD $OPTS $url" fi fi done @@ -356,7 +356,7 @@ checkSetup() { } -# quit here if something is not correctly configured +# warn if something seems not correctly configured checkSetup if [ "$once" = "y" ]; then