Skip to content

Commit

Permalink
Improve log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed May 17, 2021
1 parent 3b0e2f5 commit d03bad8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions td/telegram/GroupCallManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1937,6 +1937,8 @@ void GroupCallManager::process_group_call_participants(
}
if (participants_it->second->min_order < min_order) {
// if previously known more users, adjust min_order
LOG(INFO) << "Decrease min_order from " << participants_it->second->min_order << " to " << min_order << " in "
<< input_group_call_id;
participants_it->second->min_order = min_order;
}
}
Expand All @@ -1948,6 +1950,8 @@ void GroupCallManager::process_group_call_participants(
auto old_min_order = participants_it->second->min_order;
if (old_min_order > min_order) {
participants_it->second->min_order = min_order;
LOG(INFO) << "Increase min_order from " << old_min_order << " to " << min_order << " in "
<< input_group_call_id;

for (auto &participant : participants_it->second->participants) {
auto real_order = get_real_participant_order(can_self_unmute, participant, participants_it->second.get());
Expand Down
2 changes: 1 addition & 1 deletion td/telegram/GroupCallParticipant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ bool operator!=(const GroupCallParticipant &lhs, const GroupCallParticipant &rhs
}

StringBuilder &operator<<(StringBuilder &string_builder, const GroupCallParticipant &group_call_participant) {
return string_builder << '[' << group_call_participant.dialog_id << " with source "
return string_builder << "GroupCallParticipant[" << group_call_participant.dialog_id << " with source "
<< group_call_participant.audio_source << " and order " << group_call_participant.order << ']';
}

Expand Down

0 comments on commit d03bad8

Please sign in to comment.