From f8a9d0ffb7eedd86e458e33f33d55b5a0733240d Mon Sep 17 00:00:00 2001 From: "Steven T. Cramer" Date: Fri, 13 Jun 2025 15:37:56 +0700 Subject: [PATCH] remove troubleshooting stuff --- apps/web-evals/src/hooks/use-event-source.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/apps/web-evals/src/hooks/use-event-source.ts b/apps/web-evals/src/hooks/use-event-source.ts index 7d87ddc50b..9a201be475 100644 --- a/apps/web-evals/src/hooks/use-event-source.ts +++ b/apps/web-evals/src/hooks/use-event-source.ts @@ -41,7 +41,6 @@ export function useEventSource({ url, withCredentials, onMessage }: UseEventSour setStatus("waiting") sourceRef.current = new EventSource(url, { withCredentials }) - console.log("YO YO YO - Creating new EventSource connection for URL:", url); sourceRef.current.onopen = () => { if (isUnmountedRef.current) { @@ -68,19 +67,6 @@ export function useEventSource({ url, withCredentials, onMessage }: UseEventSour statusRef.current = "error" setStatus("error") - console.log("YO YO YO - Error in EventSource:", event); - if (event instanceof ErrorEvent) { - console.log("YO YO YO - Error details:", { - message: event.message, - filename: event.filename, - lineno: event.lineno, - colno: event.colno, - error: event.error - }); - } else { - console.log("YO YO YO - Unknown error event type:", event); - } - // Clean up current connection. cleanup() @@ -91,10 +77,8 @@ export function useEventSource({ url, withCredentials, onMessage }: UseEventSour const retryCount = (sourceRef.current.retryCount || 0) + 1; sourceRef.current.retryCount = retryCount; if (retryCount > 5) { - console.log("YO YO YO - Maximum retry limit reached for EventSource. Stopping reconnection attempts."); return; } - console.log("YO YO YO - This is where reconnection happens for EventSource. Retry attempt:", retryCount); reconnectTimeoutRef.current = setTimeout(() => { if (!isUnmountedRef.current) { createEventSource()