Timothy Jaeryang Baek 2 semanas atrás
pai
commit
7aa3903b6b
1 arquivos alterados com 7 adições e 1 exclusões
  1. 7 1
      backend/open_webui/routers/configs.py

+ 7 - 1
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