fix(log): 加载日志改debug级——宿主日志过滤info,各模块加载日志均debug才可观测
This commit is contained in:
parent
fdbae0e05a
commit
dc71c92d34
@ -23,13 +23,14 @@ def load_pipeline_opportunity():
|
||||
return True
|
||||
|
||||
# 主 agent 能力包 + slash 命令(import 即注册,与投标产线同机制)
|
||||
# 注意:宿主日志级别过滤 info,模块加载日志须用 debug 才能被观察到(与宿主各模块一致)
|
||||
try:
|
||||
from . import opp_ability # noqa: F401
|
||||
logger.info("[pipeline_opportunity] ability registered: opportunity_general")
|
||||
logger.debug("[pipeline_opportunity] ability registered: opportunity_general")
|
||||
except Exception as e:
|
||||
logger.warning("[pipeline_opportunity] ability 注册失败: %s", str(e)[:200])
|
||||
return False
|
||||
|
||||
_loaded = True
|
||||
logger.info("[pipeline_opportunity] v0.1.0 loaded")
|
||||
logger.debug("[pipeline_opportunity] v0.1.0 loaded")
|
||||
return True
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user