2
0

Group MPErrors together, ignoring the actual inline values.

This commit is contained in:
Maarten Billemont 2020-05-22 22:26:18 -04:00
parent 93ad86e63c
commit 1cae4c754b

View File

@ -43,6 +43,7 @@ __END_DECLS
SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelError]; \ SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelError]; \
event.message = strf( message_ @": %@", ##__VA_ARGS__, [__error localizedDescription]); \ event.message = strf( message_ @": %@", ##__VA_ARGS__, [__error localizedDescription]); \
event.logger = @"MPError"; \ event.logger = @"MPError"; \
event.fingerprint = @[ message_, __error.domain, @(__error.code) ]; \
[SentrySDK captureEvent:event]; \ [SentrySDK captureEvent:event]; \
} \ } \
__error; \ __error; \