Improve logging.

GitOrigin-RevId: a3ac8554a60048ecfadddc3c6d4054c759beefba
This commit is contained in:
levlam 2020-05-31 22:31:27 +03:00
parent 52df5760f1
commit 9d7d04e159

View File

@ -10104,10 +10104,12 @@ void MessagesManager::read_history_inbox(DialogId dialog_id, MessageId max_messa
if (max_message_id != MessageId() && unread_count > 0 && max_message_id >= d->last_new_message_id &&
max_message_id >= d->last_message_id && max_message_id >= d->last_database_message_id) {
LOG(ERROR) << "Have unknown " << unread_count << " unread messages up to " << max_message_id << " in "
<< dialog_id << " with last_new_message_id = " << d->last_new_message_id
<< ", last_message_id = " << d->last_message_id
<< ", last_database_message_id = " << d->last_database_message_id;
if (d->last_new_message_id.is_valid()) {
LOG(ERROR) << "Have unknown " << unread_count << " unread messages up to " << max_message_id << " in "
<< dialog_id << " with last_new_message_id = " << d->last_new_message_id
<< ", last_message_id = " << d->last_message_id
<< ", last_database_message_id = " << d->last_database_message_id;
}
unread_count = 0;
}