Skip to content

Commit

Permalink
[patch] Disabled main log unfil further notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed May 29, 2024
1 parent 6e9ece2 commit cb12b31
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions qBitrr/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@
CHILD_PROCESSES = []

logger = logging.getLogger(f"qBitrr")
if ENABLE_LOGS:
LOGS_FOLDER = HOME_PATH.joinpath("logs")
LOGS_FOLDER.mkdir(parents=True, exist_ok=True)
LOGS_FOLDER.chmod(mode=0o777)
logfile = LOGS_FOLDER.joinpath("qBitrr.log")
if pathlib.Path(logfile).is_file():
logold = LOGS_FOLDER.joinpath("qBitrr.log.old")
logfile.rename(logold)
fh = logging.FileHandler(logfile)
logger.addHandler(fh)
# if ENABLE_LOGS:
# LOGS_FOLDER = HOME_PATH.joinpath("logs")
# LOGS_FOLDER.mkdir(parents=True, exist_ok=True)
# LOGS_FOLDER.chmod(mode=0o777)
# logfile = LOGS_FOLDER.joinpath("qBitrr.log")
# if pathlib.Path(logfile).is_file():
# logold = LOGS_FOLDER.joinpath("qBitrr.log.old")
# logfile.rename(logold)
# fh = logging.FileHandler(logfile)
# logger.addHandler(fh)
run_logs(logger)


Expand Down

0 comments on commit cb12b31

Please sign in to comment.