From f8310ca9bfdba6150104bac8d35c8ff05b26b033 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Wed, 6 Dec 2023 11:39:42 -0700 Subject: [PATCH] try removing file handler --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/main.py | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 1fb1d1db4..d8e1080d8 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.0.56" +__version__ = "5.0.57" diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py index 7a428c64c..bd8643d04 100644 --- a/cyberdrop_dl/main.py +++ b/cyberdrop_dl/main.py @@ -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) diff --git a/pyproject.toml b/pyproject.toml index c28a5546f..258d8e865 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"