Improve logging.

This commit is contained in:
levlam 2023-07-22 14:16:49 +03:00
parent 44c58ee242
commit 4984307f36

View File

@ -14585,11 +14585,11 @@ std::pair<DialogId, unique_ptr<MessagesManager::Message>> MessagesManager::creat
if (message_id.is_scheduled()) { if (message_id.is_scheduled()) {
if (message_info.reply_info != nullptr) { if (message_info.reply_info != nullptr) {
LOG(ERROR) << "Receive " << message_id << " in " << dialog_id << " with reply info"; LOG(ERROR) << "Receive " << message_id << " in " << dialog_id << " with " << to_string(message_info.reply_info);
message_info.reply_info = nullptr; message_info.reply_info = nullptr;
} }
if (message_info.reactions != nullptr) { if (message_info.reactions != nullptr) {
LOG(ERROR) << "Receive " << message_id << " in " << dialog_id << " with reactions"; LOG(ERROR) << "Receive " << message_id << " in " << dialog_id << " with " << to_string(message_info.reactions);
message_info.reactions = nullptr; message_info.reactions = nullptr;
} }
} }