Skip to content

Commit

Permalink
Log rotation fix (#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazet authored Jun 12, 2024
1 parent ed8a75b commit 8f54637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion artemis/karton_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _rotate_logs(self) -> None:
continue

if log_date != datetime.datetime.now().date() and not file_name.endswith("gz"):
with open(LOGS_PATH / file_name, "w") as f:
with open(LOGS_PATH / file_name, "a") as f:
try:
fcntl.lockf(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
except OSError:
Expand Down

0 comments on commit 8f54637

Please sign in to comment.