From d911b0254d36aec254adaa25040f5b84a016685d Mon Sep 17 00:00:00 2001 From: Byungsker <72309817+byungsker@users.noreply.github.com> Date: Fri, 27 Feb 2026 14:12:10 +0900 Subject: [PATCH] fix(agents): demote Ollama empty-discovery log from warn to debug (#26379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When Ollama responds successfully but returns zero models (e.g. on Linux with the bundled `ollama-stub.service`), `discoverOllamaModels` was logging at `warn` level: [agents/model-providers] No Ollama models found on local instance This appeared on every agent invocation even when Ollama was not intentionally configured, polluting production logs. An empty model list is a normal operational state — it warrants at most a debug note, not a warning. Fix: change `log.warn` → `log.debug` for the zero-models branch. The error paths (HTTP failure, fetch exception) remain at `warn` since those indicate genuine connectivity problems. Closes #26354 --- src/agents/models-config.providers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/models-config.providers.ts b/src/agents/models-config.providers.ts index 584b340ea11..9f1b34788ce 100644 --- a/src/agents/models-config.providers.ts +++ b/src/agents/models-config.providers.ts @@ -252,7 +252,7 @@ async function discoverOllamaModels(baseUrl?: string): Promise {