Add simple logging to make it possible to monitor whether the backup ran
successfully or not
Related-to: PROD-36114
Related-to: JCDA-4782
Change-Id: I3a44d89994e657c7ba7f707f335c68615bff83fd
diff --git a/cassandra/files/backup/cassandra-backup-client-runner-call.sh b/cassandra/files/backup/cassandra-backup-client-runner-call.sh
index 79805d2..15c74a9 100644
--- a/cassandra/files/backup/cassandra-backup-client-runner-call.sh
+++ b/cassandra/files/backup/cassandra-backup-client-runner-call.sh
@@ -130,8 +130,10 @@
# Check if the rsync succeeded or failed
if [ -s $RSYNCLOG ] && ! grep -q "rsync error: " $RSYNCLOG; then
echo "Rsync to remote host completed OK"
+ logger -t "MCP_backup $0" "Rsync to remote host completed OK"
else
echo "Rsync to remote host FAILED. Check $RSYNCLOG for details"
+ logger -t "MCP_backup $0" "Rsync to remote host FAILED. Check $RSYNCLOG for details"
exit 1
fi
{%- endif %}