diff --git a/.changeset/late-snails-sip.md b/.changeset/late-snails-sip.md new file mode 100644 index 000000000..c54525e53 --- /dev/null +++ b/.changeset/late-snails-sip.md @@ -0,0 +1,10 @@ +--- +"@replayio/replay": patch +"@replayio/cypress": patch +"@replayio/jest": patch +"@replayio/playwright": patch +"@replayio/puppeteer": patch +"@replayio/test-utils": patch +--- + +Log broken entries when reading the recordings.log file diff --git a/packages/replay/src/recordingLog.ts b/packages/replay/src/recordingLog.ts index 83196adb3..971cd1854 100644 --- a/packages/replay/src/recordingLog.ts +++ b/packages/replay/src/recordingLog.ts @@ -53,6 +53,9 @@ export function readRecordings(dir?: string, includeHidden = false) { try { return JSON.parse(line) as RecordingLogEntry; } catch { + if (line) { + debug('Failed to parse recordings.log entry: "%s"', line); + } return null; } })