We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae7b106 commit 97767d4Copy full SHA for 97767d4
packages/replay/src/coreHandlers/util/networkUtils.ts
@@ -1,5 +1,5 @@
1
import type { TextEncoderInternal } from '@sentry/types';
2
-import { dropUndefinedKeys, stringMatchesSomePattern } from '@sentry/utils';
+import { dropUndefinedKeys, logger, stringMatchesSomePattern } from '@sentry/utils';
3
4
import { NETWORK_BODY_MAX_SIZE, WINDOW } from '../../constants';
5
import type {
@@ -74,7 +74,9 @@ export function getBodyString(body: unknown): string | undefined {
74
if (body instanceof FormData) {
75
return _serializeFormData(body);
76
}
77
- } catch {} // eslint-disable-line no-empty
+ } catch {
78
+ __DEBUG_BUILD__ && logger.warn('[Replay] Failed to serialize body', body);
79
+ }
80
81
return undefined;
82
0 commit comments