Add debug.

GitOrigin-RevId: 3d9d56130f29b1977e00576bb5f3fd5ff84873e9
This commit is contained in:
levlam 2018-04-04 22:37:14 +03:00
parent 8c4461b561
commit e9f3bcbd4d
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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);