diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index e5f3f0a2..48732e23 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -6961,7 +6961,8 @@ void MessagesManager::on_get_history(DialogId dialog_id, MessageId from_message_ } } } - CHECK(d->first_database_message_id.is_valid()); + CHECK(d->first_database_message_id.is_valid()) + << from_the_end << " " << last_added_message_id << " " << last_message_id << " " << d->last_database_message_id; CHECK(d->last_database_message_id.is_valid()); for (auto &first_message_id : d->first_database_message_id_by_index) { diff --git a/td/telegram/files/FileDb.cpp b/td/telegram/files/FileDb.cpp index ad54c897..802dc0a5 100644 --- a/td/telegram/files/FileDb.cpp +++ b/td/telegram/files/FileDb.cpp @@ -266,7 +266,7 @@ class FileDb : public FileDbInterface { send_closure(file_db_actor_id, &FileDbActor::optimize_refs, std::move(ids), id); } //LOG(DEBUG) << "By id " << id << " found data " << format::as_hex_dump<4>(Slice(data_str)); - LOG(INFO) << attempt_count; + //LOG(INFO) << attempt_count; FileData data; auto status = unserialize(data, data_str);