ai_review: CLI 标准化(argparse + --host/--port/--log-level/--instance)

- 新增 --host/--port 覆盖 $AI_REVIEW_HOST/$AI_REVIEW_PORT(CLI > ENV > 默认值)
- 新增 --log-level debug|info|warn|error(启动打印,ai_review 无 db 日志客户端故仅作标准接口)
- 新增 --instance 实例名(注册中心用)
- 配置加载从模块顶层移入 __main__,argparse 解析
- services.yaml: ai_review 声明 --instance 和 --log-level
This commit is contained in:
qing committed 2026-08-10 12:02:47 +08:00
1 parent 29eac70f24
commit d0ee948339
2 files changed
+31 -1

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ services:
# --- AI 审核 ---
- name: ai_review
cmd: bash /opt/micro_servers/ai_review/_run.sh
args: []
args: ["--instance", "ai_review", "--log-level", "info"]
depends_on: [db2]
sleep_before: 2