Skip to content

Commit

Permalink
add config log to git
Browse files Browse the repository at this point in the history
Signed-off-by: bvolovat <[email protected]>
  • Loading branch information
bvolovat committed Mar 2, 2025
1 parent 0edd4a3 commit 145f287
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions collect-metrics-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ data:
python threshold_check.py
python check_logs.py
if [ -f "/workspace/config.log" ]; then
if [ -f "${OUTPUT_DIR}/config.log" ]; then
echo "Copying config.log to OUTPUT_DIR..."
cp /workspace/config.log "${OUTPUT_DIR}/config.log"
cp "${OUTPUT_DIR}/config.log" "${OUTPUT_DIR}/config.log"
else
echo "WARNING: config.log not found in /workspace/!"
echo "WARNING: config.log not found in ${OUTPUT_DIR}!"
fi
# Debug: Verify config.log is in the correct directory
Expand Down
2 changes: 1 addition & 1 deletion performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def setup_logging(output_dir):
)
return logging.getLogger()

logger = setup_logging(os.getenv('OUTPUT_DIR', 'config'))
logger = setup_logging(os.getenv('OUTPUT_DIR', '/workspace'))

def log_and_print(message):
print(message) # Console
Expand Down

0 comments on commit 145f287

Please sign in to comment.