Improve logging.

GitOrigin-RevId: d1118ce761fde5b95d33939f78a10ea56bef51f9
This commit is contained in:
levlam 2020-05-31 22:26:11 +03:00
parent 8d0fa5ce77
commit 52df5760f1

View File

@ -10488,8 +10488,9 @@ void MessagesManager::set_dialog_last_read_inbox_message_id(Dialog *d, MessageId
} }
total_count -= static_cast<int32>(d->pending_new_message_notifications.size()); total_count -= static_cast<int32>(d->pending_new_message_notifications.size());
if (total_count < 0) { if (total_count < 0) {
LOG(ERROR) << "Total message notification count is " << total_count << " in " << d->dialog_id << " with " LOG(ERROR) << "Total message notification count is " << total_count << " in " << d->dialog_id
<< d->pending_new_message_notifications.size() << " pending new message notifications"; << " with old unread_count = " << old_unread_count << " and " << d->pending_new_message_notifications
<< " pending new message notifications after reading history up to " << message_id;
total_count = 0; total_count = 0;
} }
send_closure_later(G()->notification_manager(), &NotificationManager::remove_notification_group, send_closure_later(G()->notification_manager(), &NotificationManager::remove_notification_group,