We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ade71d commit b42a04eCopy full SHA for b42a04e
packages/core/src/transports/base.ts
@@ -84,8 +84,12 @@ export function createTransport(
84
}
85
86
// We don't want to throw on NOK responses, but we want to at least log them
87
- if (response.statusCode !== undefined && (response.statusCode < 200 || response.statusCode >= 300)) {
88
- DEBUG_BUILD && debug.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
+ if (
+ DEBUG_BUILD &&
89
+ response.statusCode !== undefined &&
90
+ (response.statusCode < 200 || response.statusCode >= 300)
91
+ ) {
92
+ debug.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);
93
94
95
rateLimits = updateRateLimits(rateLimits, response);
0 commit comments