Skip to content

Commit

Permalink
Changed the log file name for the save daily csv export script and ap…
Browse files Browse the repository at this point in the history
…pended one more echo command to the logs
  • Loading branch information
rishi-salunkhe-mettle committed Aug 21, 2024
1 parent 2aaa14d commit 2d3d3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/save_daily_csv_export.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CURRENT_DATE=$(date +"%m_%d_%Y")
FILE_DIR="/lantern-project/onc-open-data/lantern-daily-data/$YEAR/$MONTH"
FILE_NAME=${CURRENT_DATE}endpointdata.csv
mkdir -p $FILE_DIR
log_file="/etc/lantern/logs/daily.txt"
log_file="/etc/lantern/logs/save_daily_csv_export_logs.txt"
EXPORTFILE="/etc/lantern/dailyexport/$FILE_NAME"
echo $EXPORTFILE
#URL="http://127.0.0.1:8989/api/download"
Expand Down Expand Up @@ -47,5 +47,5 @@ while [ $attempts -lt $max_attempts ]; do
done

if [ $attempts -eq $max_attempts ]; then
echo "Maximum number of attempts reached. Exiting."
echo "Maximum number of attempts reached. Exiting." >> $log_file
fi

0 comments on commit 2d3d3b7

Please sign in to comment.