From d03bad88b441059fb9bdec8790de2285beab00c4 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 17 May 2021 19:11:59 +0300 Subject: [PATCH] Improve log messages. --- td/telegram/GroupCallManager.cpp | 4 ++++ td/telegram/GroupCallParticipant.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp index 587354d8378f..e1b7f9cba7c2 100644 --- a/td/telegram/GroupCallManager.cpp +++ b/td/telegram/GroupCallManager.cpp @@ -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; } } @@ -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()); diff --git a/td/telegram/GroupCallParticipant.cpp b/td/telegram/GroupCallParticipant.cpp index 741e3102388c..fd4a5ec16f29 100644 --- a/td/telegram/GroupCallParticipant.cpp +++ b/td/telegram/GroupCallParticipant.cpp @@ -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 << ']'; }