diff --git a/backend/open_webui/migrations/env.py b/backend/open_webui/migrations/env.py index c6e385d74d..520d5c327a 100644 --- a/backend/open_webui/migrations/env.py +++ b/backend/open_webui/migrations/env.py @@ -8,7 +8,7 @@ import logging.config import alembic.context from alembic.runtime.migration import MigrationContext -from open_webui.env import DATABASE_PASSWORD, DATABASE_SCHEMA, DATABASE_URL, LOG_FORMAT +from open_webui.env import DATABASE_PASSWORD, DATABASE_SCHEMA, DATABASE_URL, GLOBAL_LOG_LEVEL, LOG_FORMAT from open_webui.internal.db import enable_iam_token_auth, extract_ssl_params_from_url, reattach_ssl_params_to_url from open_webui.models.auths import Auth from open_webui.models.calendar import Calendar, CalendarEvent, CalendarEventAttendee # noqa: F401 @@ -21,6 +21,7 @@ from sqlalchemy import create_engine, engine_from_config, inspect, pool alembic_config = alembic.context.config if alembic_config.config_file_name: logging.config.fileConfig(alembic_config.config_file_name, disable_existing_loggers=False) + logging.root.setLevel(GLOBAL_LOG_LEVEL) if LOG_FORMAT == 'json': from open_webui.env import JSONFormatter