2
0

Sentry user login & MPError arguments.

This commit is contained in:
Maarten Billemont 2020-05-12 10:54:15 -04:00
parent 3bac8d9e0a
commit df97dec2fe
3 changed files with 4 additions and 4 deletions

View File

@ -201,6 +201,7 @@
}
@try {
[SentrySDK setUser:[[SentryUser alloc] initWithUserId:user.userID]];
[Countly.sharedInstance userLoggedIn:user.userID];
[Countly.sharedInstance recordEvent:@"login" segmentation:@{

View File

@ -116,9 +116,8 @@ static MPAppDelegate_Shared *instance;
if (self.activeUserOID == activeUserOID || [self.activeUserOID isEqual:activeUserOID])
return;
if (self.key)
self.key = nil;
[SentrySDK setUser:nil];
[Countly.sharedInstance userLoggedOut];
self.activeUserOID = activeUserOID;

View File

@ -41,7 +41,7 @@ __END_DECLS
\
if (__error && [[MPConfig get].sendInfo boolValue]) { \
SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelError]; \
event.message = strf(@"%@: %@", message_, [__error localizedDescription]); \
event.message = strf( message_ @": %@", ##__VA_ARGS__, [__error localizedDescription]); \
event.logger = @"MPError"; \
[SentrySDK captureEvent:event]; \
} \