Skip to content

Commit

Permalink
[patch] Potential log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 9, 2024
1 parent 62788d5 commit 8021d8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def __init__(
logfile = LOGS_FOLDER.joinpath(self._name + ".log")
if pathlib.Path(logfile).is_file():
logold = LOGS_FOLDER.joinpath(self._name + ".log.old")
if pathlib.Path(logold).is_file():
logold.unlink()
logfile.rename(logold)
fh = logging.FileHandler(logfile)
self.logger.addHandler(fh)
Expand Down

0 comments on commit 8021d8f

Please sign in to comment.