fix logging path in embedding pipe

This commit is contained in:
Jarian Cottingham 2026-02-02 08:30:22 -06:00
parent 68704b6edd
commit 9ab3e459e5

View File

@ -7,14 +7,15 @@
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR" cd "$SCRIPT_DIR"
# Create log directory if it doesn't exist # Create log directory if it doesn't exist (using absolute path)
mkdir -p logs LOG_DIR="$SCRIPT_DIR/logs"
mkdir -p "$LOG_DIR"
# Get current timestamp # Get current timestamp
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S") TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
# Log file # Log file using absolute path
LOG_FILE="logs/embedding_pipeline_$TIMESTAMP.log" LOG_FILE="$LOG_DIR/embedding_pipeline_$TIMESTAMP.log"
echo "===============================================" >> $LOG_FILE echo "===============================================" >> $LOG_FILE
echo "Starting embedding pipeline at $(date)" >> $LOG_FILE echo "Starting embedding pipeline at $(date)" >> $LOG_FILE