From 370194f3e30f33659c883a57896d81302a6d4355 Mon Sep 17 00:00:00 2001 From: Billy Vong Date: Mon, 29 Jul 2024 15:50:11 -0400 Subject: [PATCH] remove logger.error --- packages/replay-internal/src/util/addEvent.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/replay-internal/src/util/addEvent.ts b/packages/replay-internal/src/util/addEvent.ts index 891694682756..f397ea0564f6 100644 --- a/packages/replay-internal/src/util/addEvent.ts +++ b/packages/replay-internal/src/util/addEvent.ts @@ -79,12 +79,10 @@ async function _addEvent( return await replay.eventBuffer.addEvent(eventAfterPossibleCallback); } catch (error) { const reason = error && error instanceof EventBufferSizeExceededError ? 'addEventSizeExceeded' : 'addEvent'; + replay.handleException(error); - DEBUG_BUILD && logger.error(error); await replay.stop({ reason }); - replay.handleException(error); - const client = getClient(); if (client) {