Skip to content

Commit a5e8424

Browse files
authored
ref(replay): Minor log cleanup (#9392)
Fix one incorrect log message, and remove one we don't actually need.
1 parent c5d5a22 commit a5e8424

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/replay/src/coreHandlers/util/xhrUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function captureXhrBreadcrumbToReplay(
3030
const result = makeNetworkReplayBreadcrumb('resource.xhr', data);
3131
addNetworkBreadcrumb(options.replay, result);
3232
} catch (error) {
33-
__DEBUG_BUILD__ && logger.error('[Replay] Failed to capture fetch breadcrumb', error);
33+
__DEBUG_BUILD__ && logger.error('[Replay] Failed to capture xhr breadcrumb', error);
3434
}
3535
}
3636

packages/replay/src/replay.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ export class ReplayContainer implements ReplayContainerInterface {
11391139
}
11401140

11411141
if (!this.session) {
1142-
__DEBUG_BUILD__ && logger.error('[Replay] No session found to flush.');
1142+
// should never happen, as we would have bailed out before
11431143
return;
11441144
}
11451145

0 commit comments

Comments
 (0)