Sfoglia il codice sorgente

darkirc: info log flushed bytes on termination

dasman 2 anni fa
parent
commit
b93ea66864
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      bin/darkirc/src/main.rs

+ 3 - 2
bin/darkirc/src/main.rs

@@ -349,8 +349,9 @@ async fn realmain(args: Args, ex: Arc<Executor<'static>>) -> Result<()> {
     info!("Stopping IRC server");
     irc_task.stop().await;
 
-    info!("Flushing sled");
-    sled_db.flush_async().await?;
+    info!("Flushing sled database...");
+    let flushed_bytes = sled_db.flush_async().await?;
+    info!("Flushed {} bytes", flushed_bytes);
 
     info!("Shut down successfully");
     Ok(())