Update settings.py

This commit is contained in:
Edwin Jose 2025-09-10 12:40:52 -04:00
parent 9358408285
commit 3f198c4993

View file

@ -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)