fix
This commit is contained in:
parent
292dfaab3f
commit
365e83e15d
@ -29,8 +29,8 @@ auto data_db::get(std::string_view download_id) const
|
||||
|
||||
return res.IsNotFound() ? rocksdb::Status{} : res;
|
||||
})) {
|
||||
utils::error::handle_exception(
|
||||
function_name, fmt::format("failed to get|{}", download_id));
|
||||
utils::error::handle_error(function_name,
|
||||
fmt::format("failed to get|{}", download_id));
|
||||
}
|
||||
|
||||
return ret;
|
||||
@ -40,8 +40,8 @@ void data_db::open(std::string_view data_dir) {
|
||||
MONITARR_USES_FUNCTION_NAME();
|
||||
|
||||
auto db_path = utils::path::combine(data_dir, {"state_db"});
|
||||
utils::error::handle_exception(function_name,
|
||||
fmt::format("opening database|{}", db_path));
|
||||
utils::error::handle_info(function_name,
|
||||
fmt::format("opening database|{}", db_path));
|
||||
|
||||
rocksdb::Options options{};
|
||||
options.create_if_missing = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user