Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Mar 20, 2017
1 parent c345063 commit d6649d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion IRCCloud/Classes/MainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1860,7 +1860,7 @@ -(void)sendButtonPressed:(id)sender {
for(UNNotification *n in notifications) {
NSArray *d = [n.request.content.userInfo objectForKey:@"d"];
Buffer *b = [[BuffersDataSource sharedInstance] getBuffer:[[d objectAtIndex:1] intValue]];
[msg appendFormat:@"BID %i last_seen_eid: %f\n", b.bid, b.last_seen_eid];
[msg appendFormat:@"BID %i last_seen_eid: %f extraHighlights: %i\n", b.bid, b.last_seen_eid, b.extraHighlights];
if((!b && [NetworkConnection sharedInstance].state == kIRCCloudStateConnected && [NetworkConnection sharedInstance].ready) || [[d objectAtIndex:2] doubleValue] <= b.last_seen_eid) {
[msg appendFormat:@"Stale notification: %@\n", n.request.identifier];
}
Expand Down
1 change: 1 addition & 0 deletions IRCCloud/Classes/NotificationsDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ -(void)updateBadgeCount {
[identifiers addObject:n.request.identifier];
} else if(![[EventsDataSource sharedInstance] event:eid buffer:b.bid]) {
b.extraHighlights++;
CLS_LOG(@"bid%i has notification eid%.0f that's not in the loaded backlog, extraHighlights: %i", b.bid, eid, b.extraHighlights);
}
}

Expand Down

0 comments on commit d6649d1

Please sign in to comment.