Sentry user login & MPError arguments.
This commit is contained in:
parent
3bac8d9e0a
commit
df97dec2fe
@ -201,6 +201,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@try {
|
@try {
|
||||||
|
[SentrySDK setUser:[[SentryUser alloc] initWithUserId:user.userID]];
|
||||||
[Countly.sharedInstance userLoggedIn:user.userID];
|
[Countly.sharedInstance userLoggedIn:user.userID];
|
||||||
|
|
||||||
[Countly.sharedInstance recordEvent:@"login" segmentation:@{
|
[Countly.sharedInstance recordEvent:@"login" segmentation:@{
|
||||||
|
@ -116,9 +116,8 @@ static MPAppDelegate_Shared *instance;
|
|||||||
if (self.activeUserOID == activeUserOID || [self.activeUserOID isEqual:activeUserOID])
|
if (self.activeUserOID == activeUserOID || [self.activeUserOID isEqual:activeUserOID])
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (self.key)
|
|
||||||
self.key = nil;
|
self.key = nil;
|
||||||
|
[SentrySDK setUser:nil];
|
||||||
[Countly.sharedInstance userLoggedOut];
|
[Countly.sharedInstance userLoggedOut];
|
||||||
|
|
||||||
self.activeUserOID = activeUserOID;
|
self.activeUserOID = activeUserOID;
|
||||||
|
@ -41,7 +41,7 @@ __END_DECLS
|
|||||||
\
|
\
|
||||||
if (__error && [[MPConfig get].sendInfo boolValue]) { \
|
if (__error && [[MPConfig get].sendInfo boolValue]) { \
|
||||||
SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelError]; \
|
SentryEvent *event = [[SentryEvent alloc] initWithLevel:kSentryLevelError]; \
|
||||||
event.message = strf(@"%@: %@", message_, [__error localizedDescription]); \
|
event.message = strf( message_ @": %@", ##__VA_ARGS__, [__error localizedDescription]); \
|
||||||
event.logger = @"MPError"; \
|
event.logger = @"MPError"; \
|
||||||
[SentrySDK captureEvent:event]; \
|
[SentrySDK captureEvent:event]; \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user