Skip to content

Commit

Permalink
move logfile to tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
alexboden committed Nov 2, 2024
1 parent 3bdf484 commit 079cbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from RunningJob import RunningJob

# Configure logging
log_file = 'slurm-action-runners.log'
log_file = '/tmp/slurm-action-runners.log'
log_handler = RotatingFileHandler(log_file, maxBytes=10*1024*1024, backupCount=5) # 10 MB per file, 5 backup files
log_handler.setLevel(logging.INFO)
log_formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
Expand Down

0 comments on commit 079cbbd

Please sign in to comment.