feat(core): 更新日志记录级别,增强调试信息

- 将多个模块中的日志记录级别从info调整为debug,以减少生产环境中的日志噪声,同时在调试模式下提供更详细的信息。
- 更新了主窗口、下载管理器、隐私管理器等多个文件的日志记录,确保在调试过程中能够获取到更丰富的上下文信息,便于问题排查和用户反馈。
This commit is contained in:
hyb-oyqq
2025-08-13 11:45:28 +08:00
parent ac2b0112e8
commit 43a66f66a9
14 changed files with 155 additions and 74 deletions

View File

@@ -22,7 +22,7 @@ class ConfigFetchThread(QThread):
def run(self):
try:
if self.debug_mode:
logger.info("--- Starting to fetch cloud config ---")
logger.debug("--- Starting to fetch cloud config ---")
# 完全隐藏URL
logger.debug(f"DEBUG: Requesting URL: ***URL protection***")
logger.debug(f"DEBUG: Using Headers: {self.headers}")
@@ -72,7 +72,7 @@ class ConfigFetchThread(QThread):
self.finished.emit(None, error_msg)
finally:
if self.debug_mode:
logger.info("--- Finished fetching cloud config ---")
logger.debug("--- Finished fetching cloud config ---")
def _create_safe_config_for_logging(self, config_data):
"""创建用于日志记录的安全配置副本隐藏敏感URL