Skip to content

Commit

Permalink
[build] Log folder path change
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Oct 23, 2023
1 parent 4ad9b0d commit d988dc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion qBitrr/arss.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
SkipException,
UnhandledError,
)
from qBitrr.home_path import LOGS_FOLDER
from qBitrr.home_path import HOME_PATH
from qBitrr.logger import run_logs
from qBitrr.tables import (
EpisodeFilesModel,
Expand Down Expand Up @@ -97,6 +97,8 @@ def __init__(
self.manager = manager
self._LOG_LEVEL = self.manager.qbit_manager.logger.level
if ENABLE_LOGS:
LOGS_FOLDER = HOME_PATH.joinpath("logs")
LOGS_FOLDER.mkdir(parents=True, exist_ok=True)
logfile = LOGS_FOLDER.joinpath(self._name + ".log")
if pathlib.Path(logfile).is_file():
logold = LOGS_FOLDER.joinpath(self._name + ".log.old")
Expand Down
4 changes: 0 additions & 4 deletions qBitrr/home_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@
APPDATA_FOLDER = HOME_PATH.joinpath("qBitManager")
APPDATA_FOLDER.mkdir(parents=True, exist_ok=True)
APPDATA_FOLDER.chmod(mode=0o777)

LOGS_FOLDER = HOME_PATH.joinpath("logs")
LOGS_FOLDER.mkdir(parents=True, exist_ok=True)
LOGS_FOLDER.chmod(mode=0o777)

0 comments on commit d988dc0

Please sign in to comment.