File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/replay-internal/src/util Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,12 @@ export function getHandleRecordingEmit(replay: ReplayContainer): RecordingEmitCa
85
85
// When in buffer mode, make sure we adjust the session started date to the current earliest event of the buffer
86
86
// this should usually be the timestamp of the checkout event, but to be safe...
87
87
if ( replay . recordingMode === 'buffer' && session ) {
88
+ DEBUG_BUILD &&
89
+ replay . eventBuffer &&
90
+ logger . info ( 'Attempting to fetch earliest event from event buffer type: ' , replay . eventBuffer . type ) ;
91
+
88
92
const earliestEvent = replay . eventBuffer && replay . eventBuffer . getEarliestTimestamp ( ) ;
93
+
89
94
if ( earliestEvent ) {
90
95
DEBUG_BUILD &&
91
96
logger . info ( `Updating session start time to earliest event in buffer to ${ new Date ( earliestEvent ) } ` ) ;
You can’t perform that action at this time.
0 commit comments