Skip to content

Commit e3b79b5

Browse files
committed
refactor: slice -> splice
1 parent 2aba6e3 commit e3b79b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/api-logs-transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ApiLogsTransport extends Transport {
4444
const bufferOverflow = bufferLength - this.maxBufferSize;
4545

4646
if (bufferOverflow > 0) {
47-
this.logBuffer = this.logBuffer.slice(bufferOverflow);
47+
this.logBuffer.splice(0, bufferOverflow);
4848
this.droppedLogs += bufferOverflow;
4949
}
5050

0 commit comments

Comments
 (0)