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)"
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user