From 9f129114d879e4e2433b8363625395b433f66026 Mon Sep 17 00:00:00 2001 From: rishi-salunkhe-mettle Date: Wed, 31 Jul 2024 11:21:08 -0400 Subject: [PATCH] Added a timestamp in the history_cleanup.sh logs --- scripts/history_cleanup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/history_cleanup.sh b/scripts/history_cleanup.sh index c2eff60d4..6cddc0bfe 100644 --- a/scripts/history_cleanup.sh +++ b/scripts/history_cleanup.sh @@ -11,7 +11,8 @@ if [ ! -f "$csv_file" ]; then fi while IFS=',' read -r col1 col2 col3 col4; do - echo "Deleting entries for data: $col1, $col2, $col3, $col4" + DATE=$(date) + echo "($DATE) Deleting entries for data: $col1, $col2, $col3, $col4" # Delete entry from the info history table QUERY=$(echo "DELETE FROM fhir_endpoints_info_history WHERE url='$col1' AND operation='U' AND requested_fhir_version='$col3' AND entered_at = '$col2';")