Enhance error messages in escalation.sh.sample.
authorBo Peng <pengbo@sraoss.co.jp>
Fri, 6 Oct 2023 13:47:18 +0000 (22:47 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Fri, 6 Oct 2023 13:50:11 +0000 (22:50 +0900)
src/sample/scripts/escalation.sh.sample

index c590af846a99453280527fd08094ddf9b725812f..ffffa33024b275a7fc9e2f12df86592550d02bdd 100755 (executable)
@@ -20,7 +20,7 @@ for pgpool in "${PGPOOLS[@]}"; do
         /usr/bin/sudo /sbin/ip addr del ${VIP}/24 dev ${DEVICE}
     "
     if [ $? -ne 0 ]; then
-        echo failed to release VIP on ${pgpool}.
+        echo ERROR: escalation.sh: failed to release VIP on ${pgpool}.
     fi
 done
 exit 0