From bf7f9e9befc400639a459dd770f00dba1ed0a6e3 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 2 Apr 2020 00:43:54 +0300 Subject: [PATCH] Improve logging. GitOrigin-RevId: 6bc8d2e6a80629535839344f0832c871a5de5721 --- td/telegram/ContactsManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 13c54fe3a..7459b1300 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -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); }