mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-04-10 14:09:43 +08:00
修复日志记录问题
This commit is contained in:
@@ -6,7 +6,7 @@ from module.api import router
|
||||
from module.conf import settings, setup_logger
|
||||
from module.core import reset_log
|
||||
|
||||
log_level = logging.INFO
|
||||
log_level = logging.DEBUG if settings.log.debug_enable else logging.INFO
|
||||
setup_logger(log_level)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -37,7 +37,9 @@ class DownloadClient:
|
||||
|
||||
def __enter__(self):
|
||||
if not self.authed:
|
||||
logger.debug("Authing to downloader...")
|
||||
self.auth()
|
||||
logger.debug("Authed.")
|
||||
return self
|
||||
|
||||
def __exit__(self, exc_type, exc_val, exc_tb):
|
||||
|
||||
Reference in New Issue
Block a user