Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
try removing file handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 6, 2023
1 parent fb776bd commit f8310ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.0.56"
__version__ = "5.0.57"
3 changes: 2 additions & 1 deletion cyberdrop_dl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ async def director(manager: Manager) -> None:
manager.path_manager.startup()

while True:
logger = logging.getLogger("cyberdrop_dl")
if manager.args_manager.all_configs:
configs_to_run = list(set(configs) - set(configs_ran))
manager.config_manager.change_config(configs_to_run[0])
configs_ran.append(configs_to_run[0])
logger.removeHandler(logger.handlers[0])

logger = logging.getLogger("cyberdrop_dl")
logger.setLevel(logging.DEBUG)
file_handler = logging.FileHandler(manager.path_manager.main_log, mode="w")
file_handler.setLevel(logging.DEBUG)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.0.56"
version = "5.0.57"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit f8310ca

Please sign in to comment.