Skip to content

Commit

Permalink
fix: overwrite log on new run
Browse files Browse the repository at this point in the history
  • Loading branch information
HLasse committed Dec 5, 2023
1 parent 3863a9d commit c60e5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psycop/common/model_training_v2/loggers/disk_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _setup_logging_module(self) -> logging.Logger:
self.log_path.parent.mkdir(exist_ok=True, parents=True)

# Create file handler
fh = logging.FileHandler(self.log_path, mode="a", encoding="utf-8")
fh = logging.FileHandler(self.log_path, mode="w", encoding="utf-8")
formatter = logging.Formatter(
"%(asctime)s %(levelname)s %(name)s %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
Expand Down

0 comments on commit c60e5d5

Please sign in to comment.