executor 分级日志 + core 登录日志:executor 新增 EXECUTOR_LOG_LEVEL(debug|info|warn|error|none,默认 info,语义对齐 core log.js),debug 时逐条打印与 core 的完整交互(请求行、/exec 请求体、每条 SSE 下发帧、JSON 响应,超长截断 2000 字符),info 保留 listening/start/exit 等关键动作,鉴权拒绝升 warn、spawn 错误与处理异常升 error;Dockerfile/compose 接线环境变量。core 在 /api/login 补用户进入日志:成功 info(含 ip)、密码错误 warn;login_restore 自动恢复记 debug 防 APK 冷启动刷屏

This commit is contained in:
2026-09-06 08:49:39 +08:00
parent e819586ea3
commit 7f88f0c96d
4 changed files with 69 additions and 11 deletions
+3
View File
@@ -38,6 +38,9 @@ services:
- PORT=9000
# 与 agent-core 侧设成同一个值即启用调用鉴权(可选):
- EXECUTOR_TOKEN=whoami
# 日志等级:debug|info|warn|error|none(默认 info);
# debug 会把与 core 的完整交互打印出来(请求、/exec 请求体、每条 SSE 帧、JSON 响应):
- EXECUTOR_LOG_LEVEL=debug
cap_drop:
- SYS_ADMIN
- DAC_OVERRIDE