Improve logging.
GitOrigin-RevId: 6bc8d2e6a80629535839344f0832c871a5de5721
This commit is contained in:
parent
679bc7c84b
commit
bf7f9e9bef
@ -10963,13 +10963,13 @@ void ContactsManager::on_update_chat_pinned_message(ChatId chat_id, MessageId pi
|
||||
void ContactsManager::on_update_chat_participant_count(Chat *c, ChatId chat_id, int32 participant_count, int32 version,
|
||||
const string &debug_str) {
|
||||
if (version <= -1) {
|
||||
LOG(ERROR) << "Receive wrong version " << version << " in " << chat_id << " from " << debug_str;
|
||||
LOG(ERROR) << "Receive wrong version " << version << " in " << chat_id << debug_str;
|
||||
return;
|
||||
}
|
||||
|
||||
if (version < c->version) {
|
||||
// some outdated data
|
||||
LOG(INFO) << "Receive member count of " << chat_id << " with version " << version << " from " << debug_str
|
||||
LOG(INFO) << "Receive member count of " << chat_id << " with version " << version << debug_str
|
||||
<< ", but current version is " << c->version;
|
||||
return;
|
||||
}
|
||||
@ -10979,7 +10979,7 @@ void ContactsManager::on_update_chat_participant_count(Chat *c, ChatId chat_id,
|
||||
// version is not changed when deleted user is removed from the chat
|
||||
LOG_IF(ERROR, c->participant_count != participant_count + 1)
|
||||
<< "Member count of " << chat_id << " has changed from " << c->participant_count << " to "
|
||||
<< participant_count << ", but version " << c->version << " remains unchanged in " << debug_str;
|
||||
<< participant_count << ", but version " << c->version << " remains unchanged" << debug_str;
|
||||
repair_chat_participants(chat_id);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user