Log when we delete sessions

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent bb38fce54e
commit 513c275107

@ -93,7 +93,8 @@ void AssertIsOnSessionStoreQueue()
- (void)deleteSessionForContact:(NSString *)contactIdentifier deviceId:(int)deviceId
{
AssertIsOnSessionStoreQueue();
DDLogInfo(
@"[TSStorageManager (SessionStore)] deleting session for contact: %@ device: %d", contactIdentifier, deviceId);
NSMutableDictionary *dictionary =
[[self dictionaryForKey:contactIdentifier inCollection:TSStorageManagerSessionStoreCollection] mutableCopy];
@ -109,6 +110,7 @@ void AssertIsOnSessionStoreQueue()
- (void)deleteAllSessionsForContact:(NSString *)contactIdentifier
{
AssertIsOnSessionStoreQueue();
DDLogInfo(@"[TSStorageManager (SessionStore)] deleting all sessions for contact:%@", contactIdentifier);
[self removeObjectForKey:contactIdentifier inCollection:TSStorageManagerSessionStoreCollection];
}

Loading…
Cancel
Save