captcha2: CLI 标准化(--host/--config/--log-level/--instance + LogC 级别过滤)

- 新增 --host(别名 --addr/-a)覆盖 [server] host
- 新增 --config 覆盖 confs 拉取的配置名(默认 captcha.ini)
- 新增 --log-level debug|info|warn|error(LogC 加级别过滤)
- 新增 --instance 实例名(注册中心用)
- LogC.hpp: 新增 set_level() + push() 级别过滤(atomic 阈值,大写兼容)
- 配置优先级: CLI > ENV > confs > 默认值
- services.yaml: captcha2 声明 --instance 和 --log-level
This commit is contained in:
qing committed 2026-08-10 12:00:34 +08:00
1 parent 8eb14cad4a
commit 29eac70f24
3 files changed
+54 -8

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ services:
# --- 验证码 ---
- name: captcha2
cmd: bash /opt/micro_servers/captcha2/_run.sh
args: []
args: ["--instance", "captcha2", "--log-level", "info"]
depends_on: []
sleep_before: 1