Update settings.py
This commit is contained in:
parent
9358408285
commit
3f198c4993
1 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from starlette.responses import JSONResponse
|
||||
from utils.logging_config import get_logger
|
||||
from config.settings import (
|
||||
LANGFLOW_URL,
|
||||
LANGFLOW_CHAT_FLOW_ID,
|
||||
|
|
@ -6,6 +7,9 @@ from config.settings import (
|
|||
LANGFLOW_PUBLIC_URL,
|
||||
)
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
||||
|
||||
async def get_settings(request, session_manager):
|
||||
"""Get application settings"""
|
||||
|
|
@ -96,7 +100,7 @@ async def get_settings(request, session_manager):
|
|||
settings["ingestion_defaults"] = ingestion_defaults
|
||||
|
||||
except Exception as e:
|
||||
print(f"[WARNING] Failed to fetch ingestion flow defaults: {e}")
|
||||
logger.warning(f"Failed to fetch ingestion flow defaults: {e}")
|
||||
# Continue without ingestion defaults
|
||||
|
||||
return JSONResponse(settings)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue