diff --git a/packages/replay-internal/src/eventBuffer/EventBufferCompressionWorker.ts b/packages/replay-internal/src/eventBuffer/EventBufferCompressionWorker.ts index 246467180cdc..007858d65d45 100644 --- a/packages/replay-internal/src/eventBuffer/EventBufferCompressionWorker.ts +++ b/packages/replay-internal/src/eventBuffer/EventBufferCompressionWorker.ts @@ -67,12 +67,6 @@ export class EventBufferCompressionWorker implements EventBuffer { this._totalSize += data.length; if (this._totalSize > REPLAY_MAX_EVENT_BUFFER_SIZE) { - DEBUG_BUILD && - logger.info( - `Cannot add new event with raw size of ${data.length} to existing buffer of size ${ - this._totalSize - data.length - }`, - ); return Promise.reject(new EventBufferSizeExceededError()); } diff --git a/packages/replay-internal/src/replay.ts b/packages/replay-internal/src/replay.ts index bd469a965e46..26fd57cbf54e 100644 --- a/packages/replay-internal/src/replay.ts +++ b/packages/replay-internal/src/replay.ts @@ -452,7 +452,9 @@ export class ReplayContainer implements ReplayContainerInterface { this._isEnabled = false; try { - DEBUG_BUILD && logger.info(`Stopping Replay${reason ? ` triggered by ${reason}` : ''}`); + DEBUG_BUILD && + reason !== 'addEventSizeExceeded' && + logger.info(`Stopping Replay${reason ? ` triggered by ${reason}` : ''}`); resetReplayIdOnDynamicSamplingContext();