mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #10868] chore: use logging.getLevelNamesMapping() for validating log level #61466
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?
Original Pull Request: https://github.com/open-webui/open-webui/pull/10868
State: closed
Merged: Yes
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Use
logging.getLevelNamesMapping()for validating logging levels set from environment variables.Description
Use
logging.getLevelNamesMapping()for getting all valid logging levels. This also allows adding new ones usinglogging.addLevel(). This feature was added in Python 3.11 which is above the minimum supported Python version for open-webui.Example output of the function: