Skip to content

Commit

Permalink
[ft-benchmark] debug logging (#11576)
Browse files Browse the repository at this point in the history
Before I logged it using redirecting outputs of whole script in the cron
job, but it leaded to mix of outputs of several instances of script in
one file

Co-authored-by: Viktar Makouski <viktar@neaar.org>
  • Loading branch information
MCJOHN974 and Viktar Makouski authored Jun 14, 2024
1 parent e7233fa commit e7d4e2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/ft-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ else
git pull
fi

# some logging improvements
NEW_COMMIT_HASH=$(git rev-parse origin/master)
LOG_DIR=scripts/ft-benchmark-logs
MAIN_LOG_FILE=$LOG_DIR/${NEW_COMMIT_HASH}.log
exec > >(tee -a $MAIN_LOG_FILE) 2>&1

# Stop previous experiment
pkill -9 locust || true
nearup stop
Expand Down

0 comments on commit e7d4e2e

Please sign in to comment.