Improve logging.
GitOrigin-RevId: 4d0cf9d0c6bc1fb1db353e2bc4ea8b7149ef7903
This commit is contained in:
parent
4d9b8cf016
commit
e9118c7bd5
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user