From 488437ff3b0b0fb6223f5496b6cca3aa7bd8f30f Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 29 Jan 2020 02:38:04 +0300 Subject: [PATCH] Add more debug logging. GitOrigin-RevId: d48a29d6fd53da7790656a4de1459d8354e79f20 --- td/telegram/ContactsManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index e585c04bc..81a82e887 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -9469,6 +9469,7 @@ void ContactsManager::on_get_channel_participants_success( vector result; for (auto &participant_ptr : participants) { + auto debug_participant = to_string(participant_ptr); result.push_back(get_dialog_participant(channel_id, std::move(participant_ptr))); if ((filter.is_bots() && !is_user_bot(result.back().user_id)) || (filter.is_administrators() && !result.back().status.is_administrator()) || @@ -9480,7 +9481,7 @@ void ContactsManager::on_get_channel_participants_success( (filter.is_contacts() && result.back().user_id == get_my_id()); if (!skip_error) { LOG(ERROR) << "Receive " << result.back() << ", while searching for " << filter << " in " << channel_id - << " with offset " << offset << " and limit " << limit; + << " with offset " << offset << " and limit " << limit << ": " << oneline(debug_participant); } result.pop_back(); total_count--;