mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-12 03:48:33 +00:00
fix: MCP server connection failures are not logged at the default log level (#32229)
When an MCP tool server fails to connect during a chat, the chat shows "Failed to connect to MCP server" but the reason was only logged at debug level, so it never appeared in the logs of a default install. The failure is now logged as an error with the full cause, such as a refused connection or a 401 from the server. The message in the chat is unchanged. Fixes #32213
This commit is contained in:
parent
1283b2701e
commit
ee1d9255fc
1 changed files with 2 additions and 2 deletions
|
|
@ -3085,8 +3085,8 @@ async def process_chat_payload(request, form_data, user, metadata, model):
|
|||
'client': client,
|
||||
'direct': False,
|
||||
}
|
||||
except Exception as e:
|
||||
log.debug(e)
|
||||
except Exception:
|
||||
log.exception("Failed to connect to MCP server '%s'", server_id)
|
||||
if event_emitter:
|
||||
await event_emitter(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue