fix logging path in embedding pipe
This commit is contained in:
parent
68704b6edd
commit
9ab3e459e5
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user