From 52df5760f11bd6cac61b136d10eb4f00296bac8a Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 31 May 2020 22:26:11 +0300 Subject: [PATCH] Improve logging. GitOrigin-RevId: d1118ce761fde5b95d33939f78a10ea56bef51f9 --- td/telegram/MessagesManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index e875a3bda..04a757de4 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -10488,8 +10488,9 @@ void MessagesManager::set_dialog_last_read_inbox_message_id(Dialog *d, MessageId } total_count -= static_cast(d->pending_new_message_notifications.size()); if (total_count < 0) { - LOG(ERROR) << "Total message notification count is " << total_count << " in " << d->dialog_id << " with " - << d->pending_new_message_notifications.size() << " pending new message notifications"; + LOG(ERROR) << "Total message notification count is " << total_count << " in " << d->dialog_id + << " 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; } send_closure_later(G()->notification_manager(), &NotificationManager::remove_notification_group,