mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[PR #14137] [CLOSED] chore: Improve the exception details in logging for easier troubleshooting #78269
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14137
Author: @jairov4
Created: 5/21/2025
Status: ❌ Closed
Base:
dev← Head:main📝 Commits (1)
a4f2588feat: Improve the exception details in logging for easier troubleshooting📊 Changes
1 file changed (+7 additions, -10 deletions)
View changed files
📝
backend/open_webui/main.py(+7 -10)📄 Description
Fixed
When you are testing tools, filters, etc you often dont know why your python code failed.
Looking at the log you only see the result of
str(e)which provides vague details.For example you can see just
typeas the error message with no additional context.In this change the Exception details will be logged following the standard configuration through the logging facilities.
Typically it will also include stack trace which will help a lot in understanding the error cause.
For example:
After this change you will be able to see:
which guide you to figure out the real cause: there is an optional parameter whcih causes the json schema uses the anyOf entry. Then it produces a KeyError exception!!!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.