[GH-ISSUE #3826] Logging broken in 0.3.8? #52064

Closed
opened 2026-05-05 13:16:00 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @clang88 on GitHub (Jul 12, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/3826

Bug Report

Description

It appears that when upgrading from 0.3.8 broke logging. Eventhough DEBUG is enabled, almost no new logs are visible.

Bug Summary:
Here is a comparison between the logs in 0.3.7 and 0.3.8:
0.3.7

INFO:     10.242.2.33:63315 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
INFO:     127.0.0.1:37370 - "GET /health HTTP/1.1" 200 OK
DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."email", "t1"."role", "t1"."profile_image_url", "t1"."last_active_at", "t1"."updated_at", "t1"."created_at", "t1"."api_key", "t1"."settings", "t1"."info", "t1"."oauth_sub" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['18969f84-00aa-4089-a223-34467ddf178b', 1, 0])
DEBUG:peewee:('UPDATE "user" SET "last_active_at" = ? WHERE ("user"."id" = ?)', [1720779725, '18969f84-00aa-4089-a223-34467ddf178b'])
DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."email", "t1"."role", "t1"."profile_image_url", "t1"."last_active_at", "t1"."updated_at", "t1"."created_at", "t1"."api_key", "t1"."settings", "t1"."info", "t1"."oauth_sub" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['18969f84-00aa-4089-a223-34467ddf178b', 1, 0])
DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."email", "t1"."role", "t1"."profile_image_url", "t1"."last_active_at", "t1"."updated_at", "t1"."created_at", "t1"."api_key", "t1"."settings", "t1"."info", "t1"."oauth_sub" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['18969f84-00aa-4089-a223-34467ddf178b', 1, 0])
INFO:     10.242.2.33:63312 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK
INFO:     10.242.2.33:63312 - "GET /ollama/api/version HTTP/1.1" 200 OK
INFO:     127.0.0.1:37692 - "GET /health HTTP/1.1" 200 OK
INFO:     127.0.0.1:50288 - "GET /health HTTP/1.1" 200 OK

0.3.8

DEBUG:apps.rag.utils:model: sentence-transformers/all-MiniLM-L6-v2
DEBUG:apps.rag.utils:snapshot_kwargs: {'cache_dir': '/app/backend/data/cache/embedding/models', 'local_files_only': True}
DEBUG:apps.rag.utils:model_repo_path: /app/backend/data/cache/embedding/models/models--sentence-transformers--all-MiniLM-L6-v2/snapshots/8b3219a92973c328a8e22fadcfa821b5dc75636a
INFO:sentence_transformers.SentenceTransformer:Load pretrained SentenceTransformer: /app/backend/data/cache/embedding/models/models--sentence-transformers--all-MiniLM-L6-v2/snapshots/8b3219a92973c328a8e22fadcfa821b5dc75636a
INFO:     Started server process [1]
INFO:     Waiting for application startup.
  ___                    __        __   _     _   _ ___ 
 / _ \ _ __   ___ _ __   \ \      / /__| |__ | | | |_ _|
| | | | '_ \ / _ \ '_ \   \ \ /\ / / _ \ '_ \| | | || | 
| |_| | |_) |  __/ | | |   \ V  V /  __/ |_) | |_| || | 
 \___/| .__/ \___|_| |_|    \_/\_/ \___|_.__/ \___/|___|
      |_|                                               
      
v0.3.8 - building the best open-source AI user interface.
https://github.com/open-webui/open-webui
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.

(Nothing new is ever added after this...)

Steps to Reproduce:
Update to 0.3.8 and set log level to DEBUG (any log-level really doesn't work) (docker env: GLOBAL_LOG_LEVEL=DEBUG=

Expected Behavior:
To see more logs.

Actual Behavior:
Shows no (or almost no) new logs)

Environment

  • Open WebUI Version: 0.3.8

  • Operating System: Ubuntu 22.04

  • Browser (if applicable): Chrome

Originally created by @clang88 on GitHub (Jul 12, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/3826 # Bug Report ## Description It appears that when upgrading from 0.3.8 broke logging. Eventhough DEBUG is enabled, almost no new logs are visible. **Bug Summary:** Here is a comparison between the logs in 0.3.7 and 0.3.8: **0.3.7** ``` INFO: 10.242.2.33:63315 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK INFO: 127.0.0.1:37370 - "GET /health HTTP/1.1" 200 OK DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."email", "t1"."role", "t1"."profile_image_url", "t1"."last_active_at", "t1"."updated_at", "t1"."created_at", "t1"."api_key", "t1"."settings", "t1"."info", "t1"."oauth_sub" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['18969f84-00aa-4089-a223-34467ddf178b', 1, 0]) DEBUG:peewee:('UPDATE "user" SET "last_active_at" = ? WHERE ("user"."id" = ?)', [1720779725, '18969f84-00aa-4089-a223-34467ddf178b']) DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."email", "t1"."role", "t1"."profile_image_url", "t1"."last_active_at", "t1"."updated_at", "t1"."created_at", "t1"."api_key", "t1"."settings", "t1"."info", "t1"."oauth_sub" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['18969f84-00aa-4089-a223-34467ddf178b', 1, 0]) DEBUG:peewee:('SELECT "t1"."id", "t1"."name", "t1"."email", "t1"."role", "t1"."profile_image_url", "t1"."last_active_at", "t1"."updated_at", "t1"."created_at", "t1"."api_key", "t1"."settings", "t1"."info", "t1"."oauth_sub" FROM "user" AS "t1" WHERE ("t1"."id" = ?) LIMIT ? OFFSET ?', ['18969f84-00aa-4089-a223-34467ddf178b', 1, 0]) INFO: 10.242.2.33:63312 - "GET /api/v1/users/user/settings HTTP/1.1" 200 OK INFO: 10.242.2.33:63312 - "GET /ollama/api/version HTTP/1.1" 200 OK INFO: 127.0.0.1:37692 - "GET /health HTTP/1.1" 200 OK INFO: 127.0.0.1:50288 - "GET /health HTTP/1.1" 200 OK ``` **0.3.8** ``` DEBUG:apps.rag.utils:model: sentence-transformers/all-MiniLM-L6-v2 DEBUG:apps.rag.utils:snapshot_kwargs: {'cache_dir': '/app/backend/data/cache/embedding/models', 'local_files_only': True} DEBUG:apps.rag.utils:model_repo_path: /app/backend/data/cache/embedding/models/models--sentence-transformers--all-MiniLM-L6-v2/snapshots/8b3219a92973c328a8e22fadcfa821b5dc75636a INFO:sentence_transformers.SentenceTransformer:Load pretrained SentenceTransformer: /app/backend/data/cache/embedding/models/models--sentence-transformers--all-MiniLM-L6-v2/snapshots/8b3219a92973c328a8e22fadcfa821b5dc75636a INFO: Started server process [1] INFO: Waiting for application startup. ___ __ __ _ _ _ ___ / _ \ _ __ ___ _ __ \ \ / /__| |__ | | | |_ _| | | | | '_ \ / _ \ '_ \ \ \ /\ / / _ \ '_ \| | | || | | |_| | |_) | __/ | | | \ V V / __/ |_) | |_| || | \___/| .__/ \___|_| |_| \_/\_/ \___|_.__/ \___/|___| |_| v0.3.8 - building the best open-source AI user interface. https://github.com/open-webui/open-webui INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. ``` (Nothing new is ever added after this...) **Steps to Reproduce:** Update to 0.3.8 and set log level to DEBUG (any log-level really doesn't work) (docker env: GLOBAL_LOG_LEVEL=DEBUG= **Expected Behavior:** To see more logs. **Actual Behavior:** Shows no (or almost no) new logs) ## Environment - **Open WebUI Version:** 0.3.8 - **Operating System:** Ubuntu 22.04 - **Browser (if applicable):** Chrome
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#52064