refactor(llm): downgrade embedding connectivity test failure log to warn

This commit is contained in:
matevip 2026-05-20 10:58:21 +08:00
parent eb827d8cc5
commit 5cc567a689

View File

@ -266,7 +266,11 @@ public class ModelConfigController {
result.put("model", config.getModelName());
result.put("message", "连通性测试成功");
} catch (Exception e) {
log.error("[EmbeddingTest] modelId={} test failed", modelId, e);
// log.warn (not error) connectivity test failures are user-input /
// upstream-API problems, not system-side incidents. The stack trace
// is still attached so operators can diagnose, but it stops firing
// monitoring alerts that key off ERROR-level events.
log.warn("[EmbeddingTest] modelId={} test failed", modelId, e);
result.put("success", false);
result.put("message", e.getMessage());
}