magentaeu: add header logging

This commit is contained in:
Nirvana
2026-07-09 11:57:19 +02:00
parent 10ef7390fd
commit ab9f861a30
@@ -401,6 +401,16 @@ class MagentaEUEpgManager:
merged: Dict[str, Any] = {}
headers = self._guest_headers(flow="EPG", step="EPG_SCHEDULES")
# ✅ LOG THE FULL HEADERS (or at least the critical ones)
logger.info(
f"[MagentaEUEpgManager/{self._country}] "
f"Making EPG request with headers: "
f"device-id={headers.get('device-id')}, "
f"session-id={headers.get('x-request-session-id')}, "
f"txn-id={headers.get('x-txn-id')}, "
f"x-tv-flow={headers.get('x-tv-flow')}"
)
utc_date = self._ensure_tz(date).astimezone(timezone.utc)
formatted = utc_date.strftime("%Y-%m-%d")
@@ -487,14 +497,6 @@ class MagentaEUEpgManager:
)
continue
# ✅ Log the critical headers for debugging
logger.debug(
f"[MagentaEUEpgManager/{self._country}] "
f"device-id: {headers.get('device-id')}, "
f"session-id: {headers.get('x-request-session-id')}, "
f"txn-id: {headers.get('x-txn-id')}"
)
return merged
def _fetch_program_details(self, program_id: str) -> Dict[str, Any]: