Change rate limiting logs to level warning or error
Description
See https://github.com/getsentry/team-mobile/issues/195.
Hey @philipphofmann ! I was wondering if the goal is just to update the log-level here to something like SENTRY_LOG_WARN(@"RateLimit is active for all envelope items.") (as the title of this issue states) or also have some additional log statement, which isn't bound to the condition that all items has to be rate-limited in order to print the log?
I've the first variant ready in a fork, let me know if I should open a PR.
SentryHttpTransportTests |
|---|
I think we should also log a warning here to communicate that one envelope item of the envelope was dropped. https://github.com/getsentry/sentry-cocoa/blob/fc350a451fe35646984e94b69ada9e6d0544e022/Sources/Sentry/SentryHttpTransport.m#L229-L237
Yes, feel free to open a PR, @rwachtler. We will help you to merge it.