Add more debug logging.
GitOrigin-RevId: d48a29d6fd53da7790656a4de1459d8354e79f20
This commit is contained in:
parent
8539d43951
commit
488437ff3b
@ -9469,6 +9469,7 @@ void ContactsManager::on_get_channel_participants_success(
|
|||||||
|
|
||||||
vector<DialogParticipant> result;
|
vector<DialogParticipant> result;
|
||||||
for (auto &participant_ptr : participants) {
|
for (auto &participant_ptr : participants) {
|
||||||
|
auto debug_participant = to_string(participant_ptr);
|
||||||
result.push_back(get_dialog_participant(channel_id, std::move(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)) ||
|
if ((filter.is_bots() && !is_user_bot(result.back().user_id)) ||
|
||||||
(filter.is_administrators() && !result.back().status.is_administrator()) ||
|
(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());
|
(filter.is_contacts() && result.back().user_id == get_my_id());
|
||||||
if (!skip_error) {
|
if (!skip_error) {
|
||||||
LOG(ERROR) << "Receive " << result.back() << ", while searching for " << filter << " in " << channel_id
|
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();
|
result.pop_back();
|
||||||
total_count--;
|
total_count--;
|
||||||
|
Loading…
Reference in New Issue
Block a user