mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
issue: GLOBAL_LOG_LEVEL=DEBUG not being respected #5642
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?
Originally created by @thomasbeaudry on GitHub (Jun 25, 2025).
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.15
Ollama Version (if applicable)
No response
Operating System
ubuntu server 24.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The GLOBAL_LOG_LEVEL should be listed at DEBUG
Actual Behavior
The GLOBAL_LOG_LEVEL is listed as INFO
Steps to Reproduce
I followed the instructions from here:
https://docs.openwebui.com/getting-started/advanced-topics/logging/
Here is a snippet of my docker-compose.yml:
I restart my docker compose stack, and when i check the log of the open-webui service i see that it still says that the log level is info:
Logs & Screenshots
docker log on a fresh restart:
Additional Information
Just in case this is an XY problem, I'm really trying to capture the backend chat prompts that my users make.
Thanks!
@thomasbeaudry commented on GitHub (Jun 26, 2025):
I saw that in the UI that I can export all chats as a json file which serves my needs. I still think this log level is an issue though that you guys could fix since I tried setting it to other values with no change to the docker logs
@tjbck commented on GitHub (Jun 26, 2025):
The logs should output both INFO and DEBUG, is this not the case for you?
@rgaricano commented on GitHub (Jun 26, 2025):
DEBUGis not a Open-WebUI env var, maybe your asignationDEBUG=trueis interfering and it is used in next asignationGLOBAL_LOG_LEVEL=DEBUG¿?you can try removing env var
DEBUG=true&| useGLOBAL_LOG_LEVEL="DEBUG"my init log:
@mykola-mmm commented on GitHub (Jun 26, 2025):
@thomasbeaudry on my side everything is working as expected (tag v0.6.15)
@thomasbeaudry commented on GitHub (Jun 26, 2025):
Hi,
Thanks for the quick replies!
I can confirm that:
Removing the DEBUG=true line and only having GLOBAL_LOG_LEVEL="DEBUG" works for a fresh install and sets the GLOBAL_LOG_LEVEL to DEBUG
Doing this on my current container doesn't change the GLOBAL_LOG_LEVEL settings, and it's stuck on INFO, even with the other environment variables removed, i.e:
@rgaricano commented on GitHub (Jun 26, 2025):
The only think that I can think is that the logging mapped tree is set to INFO
As I kow, the only Log Level assignation is done in:
b5f4c85bb1/backend/open_webui/env.py (L69-L73)getLevelNamesMapping check what is the level in log tree,
maybe there are some level asignation in python env....¿?
(I'm sorry but I don't have the logging topic memorized very well.)
@mykola-mmm commented on GitHub (Jun 26, 2025):
@thomasbeaudry can you share the docker command you use to run the container?
also, could you run "docker exec -it env | grep GLOBAL_LOG_LEVEL" and share the result?
@thomasbeaudry commented on GitHub (Jun 27, 2025):
@mykola-mmm
I'm running it with docker compose up -d
From the docker logs:
The env has the correct log level, just not the app:
If it helps, here is my docker compose file