diff --git a/qlib/workflow/task/manage.py b/qlib/workflow/task/manage.py index ab4febf6a..a1d42ec8f 100644 --- a/qlib/workflow/task/manage.py +++ b/qlib/workflow/task/manage.py @@ -94,6 +94,7 @@ class TaskManager: """ self.task_pool: pymongo.collection.Collection = getattr(get_mongodb(), task_pool) self.logger = get_module_logger(self.__class__.__name__) + self.logger.info(f"task_pool:{task_pool}") @staticmethod def list() -> list: diff --git a/qlib/workflow/task/utils.py b/qlib/workflow/task/utils.py index 174b4b9bf..7a23f18b7 100644 --- a/qlib/workflow/task/utils.py +++ b/qlib/workflow/task/utils.py @@ -46,7 +46,7 @@ def get_mongodb() -> Database: except KeyError: get_module_logger("task").error("Please configure `C['mongo']` before using TaskManager") raise - + get_module_logger("task").info(f"mongo config:{cfg}") client = MongoClient(cfg["task_url"]) return client.get_database(name=cfg["task_db_name"])