From 92d8d1b9fded3ca6ae89ecb6c17502e396f92f15 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 9 Mar 2021 01:06:38 +0300 Subject: [PATCH] Improve log messages. --- td/telegram/ContactsManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 566e03c51..587cb1733 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -13082,7 +13082,7 @@ void ContactsManager::on_update_chat_participant(ChatId chat_id, UserId user_id, } if (!chat_id.is_valid() || !user_id.is_valid() || date <= 0 || (old_participant == nullptr && new_participant == nullptr)) { - LOG(ERROR) << "Receive invalid updateChatParticipant in " << chat_id << " for " << user_id << " at " << date << ": " + LOG(ERROR) << "Receive invalid updateChatParticipant in " << chat_id << " by " << user_id << " at " << date << ": " << to_string(old_participant) << " -> " << to_string(new_participant); return; } @@ -13127,7 +13127,7 @@ void ContactsManager::on_update_channel_participant(ChannelId channel_id, UserId } if (!channel_id.is_valid() || !user_id.is_valid() || date <= 0 || (old_participant == nullptr && new_participant == nullptr)) { - LOG(ERROR) << "Receive invalid updateChannelParticipant in " << channel_id << " for " << user_id << " at " << date + LOG(ERROR) << "Receive invalid updateChannelParticipant in " << channel_id << " by " << user_id << " at " << date << ": " << to_string(old_participant) << " -> " << to_string(new_participant); return; }