fix(verify): remove misleading 'optional services not started' message
WARN items include expected behaviors (login skipped in migrate mode, JWT checks, etc.) — not just unstarted services. All services are started by default. Changed footer to say '预期降级' instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
这个提交包含在:
父节点
54f4d2a06f
当前提交
be04c311b9
@ -410,12 +410,12 @@ printf "\n${BOLD}═════════════════════
|
||||
printf "${BOLD} 验证结果${RESET}\n"
|
||||
printf "${BOLD}════════════════════════════════════════════════════${RESET}\n"
|
||||
printf " ${GREEN}PASS${RESET}: %d 项\n" "$PASS"
|
||||
printf " ${YELLOW}WARN${RESET}: %d 项(可选服务或预期降级)\n" "$WARN"
|
||||
printf " ${YELLOW}WARN${RESET}: %d 项(预期降级,不影响功能)\n" "$WARN"
|
||||
printf " ${RED}FAIL${RESET}: %d 项\n" "$FAIL"
|
||||
|
||||
if [ "$FAIL" -eq 0 ]; then
|
||||
printf "\n ${GREEN}${BOLD}✓ 验证通过!所有必选服务运行正常。${RESET}\n"
|
||||
[ "$WARN" -gt 0 ] && printf " ${YELLOW}(%d 个可选服务未启动,属于预期范围)${RESET}\n" "$WARN"
|
||||
[ "$WARN" -gt 0 ] && printf " ${YELLOW}(%d 项检查为预期降级,所有服务均已全量启动)${RESET}\n" "$WARN"
|
||||
else
|
||||
printf "\n ${RED}${BOLD}✗ %d 项验证失败,请检查容器日志:${RESET}\n" "$FAIL"
|
||||
printf " docker compose logs --tail 50 tenant-service\n"
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户