Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Add temporary request headers/cookies logging

Edwin Jose2453425f0747
diff --git a/src/dependencies.py b/src/dependencies.py
index a2d264b77..ae03feaa8 100644
--- a/src/dependencies.py
+++ b/src/dependencies.py
@@ -111,6 +111,10 @@ async def _get_ibm_user(request: Request, required: bool) -> Optional["User"]:
from config.settings import IBM_SESSION_COOKIE_NAME, IBM_CREDENTIALS_HEADER
# ── Option 0: Configurable credentials header (Traefik production) ───
+ # TODO: remove log this after testing
+
+ logger.warning(f"Request headers: {dict(request.headers)}")
+ logger.warning(f"Request cookies: {dict(request.cookies)}")
lh_credentials = request.headers.get(IBM_CREDENTIALS_HEADER, "")
ibm_token = request.cookies.get(IBM_SESSION_COOKIE_NAME)
user_id = None