mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #10752] [MERGED] refactor: replace print statements with logging #22587
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10752
Author: @yvedeng
Created: 2/25/2025
Status: ✅ Merged
Merged: 2/25/2025
Merged by: @tjbck
Base:
dev← Head:yvedeng/standardize-logging📝 Commits (1)
0e5d5ecrefactor: replace print statements with logging for better error tracking📊 Changes
34 files changed (+171 additions, -103 deletions)
View changed files
📝
backend/open_webui/config.py(+3 -3)📝
backend/open_webui/models/chats.py(+8 -5)📝
backend/open_webui/models/feedbacks.py(+1 -1)📝
backend/open_webui/models/files.py(+1 -1)📝
backend/open_webui/models/folders.py(+1 -1)📝
backend/open_webui/models/functions.py(+4 -4)📝
backend/open_webui/models/models.py(+2 -3)📝
backend/open_webui/models/tags.py(+1 -1)📝
backend/open_webui/models/tools.py(+4 -4)📝
backend/open_webui/retrieval/models/colbert.py(+7 -1)📝
backend/open_webui/retrieval/utils.py(+4 -4)📝
backend/open_webui/retrieval/vector/dbs/chroma.py(+6 -1)📝
backend/open_webui/retrieval/vector/dbs/milvus.py(+8 -4)📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+21 -15)📝
backend/open_webui/retrieval/vector/dbs/qdrant.py(+7 -2)📝
backend/open_webui/routers/audio.py(+3 -4)📝
backend/open_webui/routers/auths.py(+1 -1)📝
backend/open_webui/routers/files.py(+1 -1)📝
backend/open_webui/routers/functions.py(+10 -4)📝
backend/open_webui/routers/groups.py(+11 -5)...and 14 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Refactoring the print statements by logging for better error tracking.
Changed
printby logging.Additional Information
First of all, we love this project! Please keep up the great work! 👏
This PR aims to enhance the traceability of errors as we have been having a hard time tracking errors. I apologize in advance for the large number of files that were changed. 🙏 If you prefer, I'd be happy to break this into smaller PRs. Just let me know!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.