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

Commit

Permalink
Fix secret logging not actually working due to immutable variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Feb 28, 2024
1 parent 3a133d4 commit e7236f2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 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.1.75"
__version__ = "5.1.76"
10 changes: 5 additions & 5 deletions cyberdrop_dl/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ async def director(manager: Manager) -> None:
manager.log_manager.startup()

logger_debug = logging.getLogger("cyberdrop_dl_debug")
from cyberdrop_dl.utils.utilities import DEBUG_VAR
if os.getenv("PYCHARM_HOSTED") is not None or manager.config_manager.settings_data['Runtime_Options']['log_level'] == -1:
import cyberdrop_dl.utils.utilities
if manager.config_manager.settings_data['Runtime_Options']['log_level'] == -1:
manager.config_manager.settings_data['Runtime_Options']['log_level'] = 10
DEBUG_VAR = True
cyberdrop_dl.utils.utilities.DEBUG_VAR = True

if DEBUG_VAR:
if cyberdrop_dl.utils.utilities.DEBUG_VAR:
logger_debug.setLevel(manager.config_manager.settings_data['Runtime_Options']['log_level'])
if os.getenv("PYCHARM_HOSTED") is not None:
file_handler_debug = logging.FileHandler("../cyberdrop_dl_debug.log", mode="w")
Expand Down Expand Up @@ -91,7 +91,7 @@ async def director(manager: Manager) -> None:
logger.setLevel(manager.config_manager.settings_data['Runtime_Options']['log_level'])
file_handler = logging.FileHandler(manager.path_manager.main_log, mode="w")

if DEBUG_VAR:
if cyberdrop_dl.utils.utilities.DEBUG_VAR:
manager.config_manager.settings_data['Runtime_Options']['log_level'] = 10
file_handler.setLevel(manager.config_manager.settings_data['Runtime_Options']['log_level'])

Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.1.75"
version = "5.1.76"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit e7236f2

Please sign in to comment.