mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #8041] [CLOSED] enh: add configurable log level for uvicorn server #61004
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/8041
Author: @Adhithya03
Created: 12/24/2024
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
16da847enh: add configurable log level for uvicorn serverd52fc40format📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/open_webui/__init__.py(+3 -1)📄 Description
Addresses #7859
This pull request introduces an enhancement that allows users to configure the log level of the Uvicorn server through the
GLOBAL_LOG_LEVELenvironment variable. By making the log level configurable, developers and users can adjust the verbosity of the server logs according to their needs.Changes Made:
Import
GLOBAL_LOG_LEVEL:GLOBAL_LOG_LEVELfromopen_webui.env.Modify
uvicorn.runParameters:uvicorn.runfunction call to include thelog_levelparameter.log_levelparameter toGLOBAL_LOG_LEVEL.lower()to match Uvicorn's expected log level formats (e.g., 'info', 'debug', 'warning', 'error', 'critical').🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.