From 06663f1e9ad117223f115460776e1c144ecf0113 Mon Sep 17 00:00:00 2001 From: starfall <1186454801@qq.com> Date: Tue, 3 Dec 2024 11:11:59 +0800 Subject: [PATCH] :technologist: Add debug logger of module node registry --- excore/config/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/excore/config/models.py b/excore/config/models.py index 0b0b58f..a7a1994 100644 --- a/excore/config/models.py +++ b/excore/config/models.py @@ -63,7 +63,9 @@ def _is_special(k: str) -> tuple[str, SpecialFlag]: """ match = FLAG_PATTERN.match(k) if match: + logger.ex(f"Find match `{match}`.") return match.group(2), match.group(1) # type: ignore + logger.ex("No Match.") return k, "" @@ -329,3 +331,4 @@ def register_special_flag(flag: str, target_module: NodeType, force: bool = Fals global FLAG_PATTERN FLAG_PATTERN = re.compile(rf"^([{''.join(SPECIAL_FLAGS)}])(.*)$") _dispatch_module_node[flag] = target_module # type: ignore + logger.ex(f"Register new module node `{target_module}` with special flag `{flag}.`")