From 7aa3903b6b3edd3cb3f3065de36a1e677857b88a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 23 Sep 2025 03:36:11 -0400 Subject: [PATCH] refac --- backend/open_webui/routers/configs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/routers/configs.py b/backend/open_webui/routers/configs.py index acec5121ec..3c32d551d8 100644 --- a/backend/open_webui/routers/configs.py +++ b/backend/open_webui/routers/configs.py @@ -1,4 +1,4 @@ -from cmath import log +import logging from fastapi import APIRouter, Depends, Request, HTTPException from pydantic import BaseModel, ConfigDict @@ -15,8 +15,14 @@ from open_webui.utils.tools import ( ) from open_webui.utils.mcp.client import MCPClient +from open_webui.env import SRC_LOG_LEVELS + + router = APIRouter() +log = logging.getLogger(__name__) +log.setLevel(SRC_LOG_LEVELS["MAIN"]) + ############################ # ImportConfig