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)"
cd "$SCRIPT_DIR"
# Create log directory if it doesn't exist
mkdir -p logs
# Create log directory if it doesn't exist (using absolute path)
LOG_DIR="$SCRIPT_DIR/logs"
mkdir -p "$LOG_DIR"
# Get current timestamp
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
# Log file
LOG_FILE="logs/embedding_pipeline_$TIMESTAMP.log"
# Log file using absolute path
LOG_FILE="$LOG_DIR/embedding_pipeline_$TIMESTAMP.log"
echo "===============================================" >> $LOG_FILE
echo "Starting embedding pipeline at $(date)" >> $LOG_FILE