mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #14958] [MERGED] feat: Disable console.log/debug in production #23662
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/14958
Author: @Ithanil
Created: 6/13/2025
Status: ✅ Merged
Merged: 6/13/2025
Merged by: @tjbck
Base:
dev← Head:disable_console_log📝 Commits (2)
aecbc93disable console.log entirely4681b06also disable console.debug📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
vite.config.ts(+3 -0)📄 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
This PR effectively disables output of console.log() and console.debug() in production. Other console methods (e.g. error()) are unaffected. Development mode is unaffected.
Changed
Fixed
https://github.com/open-webui/open-webui/issues/14945 (partly, the comment about excessive logging)
https://github.com/open-webui/open-webui/issues/14032
Additional Information
The verbose console logging in production seems unnecessary and can lead to performance degradation in clients.
I don't expect this PR to be merged considering the comment https://github.com/open-webui/open-webui/issues/14032#issuecomment-2890447471 , but I still have some hope to at least cause some change. In any case it should serve as a pointer for other deployers.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.