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

Commit

Permalink
Only create / empty logs when download is starting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 17, 2023
1 parent e5c600f commit 2e5c054
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions cyberdrop_dl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ async def director(manager: Manager) -> None:
configs = manager.config_manager.get_configs()
configs_ran = []
manager.path_manager.startup()
manager.log_manager.startup()

while True:
logger = logging.getLogger("cyberdrop_dl")
Expand Down
1 change: 0 additions & 1 deletion cyberdrop_dl/managers/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,3 @@ def change_config(self, config_name: str) -> None:
sleep(1)
self.manager.log_manager = LogManager(self.manager)
sleep(1)
self.manager.log_manager.startup()
1 change: 0 additions & 1 deletion cyberdrop_dl/managers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def startup(self) -> None:

self.path_manager.startup()
self.log_manager = LogManager(self)
self.log_manager.startup()

def args_startup(self) -> None:
"""Start the args manager"""
Expand Down

0 comments on commit 2e5c054

Please sign in to comment.