Skip to content

Commit 0a58f97

Browse files
committed
Do not log unhandled xai realtime events
They flood the logs
1 parent 2853c65 commit 0a58f97

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

plugins/xai/vision_agents/plugins/xai/xai_realtime.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -570,13 +570,6 @@ async def _process_events(self) -> None:
570570
context=f"xAI error: {error_info.get('type', 'unknown')}",
571571
)
572572

573-
else:
574-
# Log unhandled events at INFO so diagnostics are visible
575-
# without needing DEBUG. Full payload still logged at DEBUG.
576-
logger.info("Unhandled xAI event type: %s", event_type)
577-
if logger.isEnabledFor(logging.DEBUG):
578-
logger.debug("Unhandled xAI event payload: %s", data)
579-
580573
def _handle_response_done(self, data: dict[str, Any]) -> None:
581574
"""Handle response.done event."""
582575
response = data.get("response", {})

0 commit comments

Comments
 (0)