Skip to content

Commit 2cb5391

Browse files
feat(liveness): print return code to stderr (#22)
1 parent da4a9f5 commit 2cb5391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

liveliness.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ do
99
echo "repo $i liveliness check..."
1010
response=$(curl --head -L -w '%{http_code}' -o /dev/null -s -k -x http://127.0.0.1:3128 "$i")
1111
if [[ "$response" -lt "200" ]] || [[ "$response" -ge "400" ]]; then
12-
echo "failed curl for repo $i"
12+
echo "failed curl for repo $i with response $response" >&2
1313
exit 1
1414
fi
1515
done

0 commit comments

Comments
 (0)