more useful database logging (compaction, time taken to load)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
ce1aae7abc
commit
3d26210eac
3 changed files with 11 additions and 2 deletions
|
@ -144,10 +144,12 @@ async fn main() {
|
|||
};
|
||||
|
||||
info!("Loading database");
|
||||
let db_load_time = std::time::Instant::now();
|
||||
if let Err(error) = KeyValueDatabase::load_or_create(config).await {
|
||||
error!(?error, "The database couldn't be loaded or created");
|
||||
return;
|
||||
};
|
||||
info!("Database took {:?} to load", db_load_time.elapsed());
|
||||
|
||||
let config = &services().globals.config;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue