From c8c2f661b34665353bba98b1835a6d371e931f3a Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 19 Sep 2023 16:08:08 +0200 Subject: [PATCH] Merge pull request #14898 from overleaf/tm-remove-debug-logs-pdf-detach-error Remove debug statements that call potentially undefined logger GitOrigin-RevId: b317a023057d271611cafbf65bbc192a4b82bfdd --- .../features/pdf-preview/components/compile-time-warning.tsx | 5 ----- .../pdf-preview/components/compile-timeout-messages.tsx | 5 ----- 2 files changed, 10 deletions(-) diff --git a/services/web/frontend/js/features/pdf-preview/components/compile-time-warning.tsx b/services/web/frontend/js/features/pdf-preview/components/compile-time-warning.tsx index 4b059a3119..158c130428 100644 --- a/services/web/frontend/js/features/pdf-preview/components/compile-time-warning.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/compile-time-warning.tsx @@ -26,11 +26,6 @@ function CompileTimeWarning() { useEffect(() => { if (deliveryLatencies && deliveryLatencies.compileTimeServerE2E) { - window.sl_console.log( - `[compileTimeout] compiledTimeServerE2E ${ - deliveryLatencies.compileTimeServerE2E / 1000 - }s` - ) // compile-timeout-20s test if (deliveryLatencies.compileTimeServerE2E > 10000) { eventTracking.sendMB('compile-time-warning-would-display', { diff --git a/services/web/frontend/js/features/pdf-preview/components/compile-timeout-messages.tsx b/services/web/frontend/js/features/pdf-preview/components/compile-timeout-messages.tsx index 43219f1a55..0dc47c482a 100644 --- a/services/web/frontend/js/features/pdf-preview/components/compile-timeout-messages.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/compile-timeout-messages.tsx @@ -90,11 +90,6 @@ function CompileTimeoutMessages() { useEffect(() => { if (compiling || error || showLogs) return - window.sl_console.log( - `[compileTimeout] compiledTimeServerE2E ${ - deliveryLatencies.compileTimeServerE2E / 1000 - }s` - ) handleNewCompile(deliveryLatencies.compileTimeServerE2E) }, [compiling, error, showLogs, deliveryLatencies, handleNewCompile])