Skip to content

Commit

Permalink
log message when initial timestamp is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Jul 20, 2023
1 parent 8130c16 commit e981281
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/replay/src/replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,9 @@ export class ReplayContainer implements ReplayContainerInterface {

const earliestEvent = eventBuffer.getEarliestTimestamp();
if (earliestEvent && earliestEvent < this._context.initialTimestamp) {
// eslint-disable-next-line no-console
const log = this.getOptions()._experiments.traceInternals ? console.info : logger.info;
__DEBUG_BUILD__ && log(`[Replay] Updating initial timestamp to ${earliestEvent}`);
this._context.initialTimestamp = earliestEvent;
}
}
Expand Down

0 comments on commit e981281

Please sign in to comment.