Add more debug logging.

GitOrigin-RevId: d48a29d6fd53da7790656a4de1459d8354e79f20
This commit is contained in:
levlam 2020-01-29 02:38:04 +03:00
parent 8539d43951
commit 488437ff3b

View File

@ -9469,6 +9469,7 @@ void ContactsManager::on_get_channel_participants_success(
vector<DialogParticipant> 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--;