From e9118c7bd593a1796d1eecbae545407921bf4e18 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 7 May 2020 01:50:47 +0300 Subject: [PATCH] Improve logging. GitOrigin-RevId: 4d0cf9d0c6bc1fb1db353e2bc4ea8b7149ef7903 --- td/telegram/MessageContent.cpp | 2 +- td/telegram/MessagesManager.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index 356c11e1..3dce93da 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -2310,7 +2310,7 @@ tl_object_ptr get_input_media(const MessageContent *co auto input_media = get_input_media_impl(content, td, nullptr, nullptr, ttl); auto file_reference = FileManager::extract_file_reference(input_media); if (file_reference == FileReferenceView::invalid_file_reference()) { - auto file_id = get_message_content_upload_file_id(content); + auto file_id = get_message_content_any_file_id(content); if (!force) { LOG(INFO) << "File " << file_id << " has invalid file reference"; return nullptr; diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index c035c520..11818242 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -25975,14 +25975,12 @@ unique_ptr *MessagesManager::treap_find_message(unique const unique_ptr *MessagesManager::treap_find_message(const unique_ptr *v, MessageId message_id) { - LOG(DEBUG) << "Searching for " << message_id << " in " << static_cast(v->get()); while (*v != nullptr) { if ((*v)->message_id < message_id) { v = &(*v)->right; } else if ((*v)->message_id > message_id) { v = &(*v)->left; } else { - LOG(DEBUG) << "Message found"; break; } }