Improve logging.

GitOrigin-RevId: 4d0cf9d0c6bc1fb1db353e2bc4ea8b7149ef7903
This commit is contained in:
levlam 2020-05-07 01:50:47 +03:00
parent 4d9b8cf016
commit e9118c7bd5
2 changed files with 1 additions and 3 deletions

View File

@ -2310,7 +2310,7 @@ tl_object_ptr<telegram_api::InputMedia> 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;

View File

@ -25975,14 +25975,12 @@ unique_ptr<MessagesManager::Message> *MessagesManager::treap_find_message(unique
const unique_ptr<MessagesManager::Message> *MessagesManager::treap_find_message(const unique_ptr<Message> *v,
MessageId message_id) {
LOG(DEBUG) << "Searching for " << message_id << " in " << static_cast<const void *>(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;
}
}