Skip to content

Commit

Permalink
ref(transport): Update rate-limit log level to WARN
Browse files Browse the repository at this point in the history
Log a warning if all items of the current envelope were rate-limited

Fixes getsentry#4456
  • Loading branch information
rwachtler committed Oct 20, 2024
1 parent fc350a4 commit 18ace11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryHttpTransport.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ - (void)sendEnvelope:(SentryEnvelope *)envelope
envelope = [self.envelopeRateLimit removeRateLimitedItems:envelope];

if (envelope.items.count == 0) {
SENTRY_LOG_DEBUG(@"RateLimit is active for all envelope items.");
SENTRY_LOG_WARN(@"RateLimit is active for all envelope items.");
return;
}

Expand Down

0 comments on commit 18ace11

Please sign in to comment.