Page MenuHomePhabricator

D5124.diff
No OneTemporary

D5124.diff

diff --git a/services/backup/blob_client/src/lib.rs b/services/backup/blob_client/src/lib.rs
--- a/services/backup/blob_client/src/lib.rs
+++ b/services/backup/blob_client/src/lib.rs
@@ -2,7 +2,9 @@
mod get_client;
mod put_client;
+use env_logger;
use lazy_static::lazy_static;
+use log::info;
use tokio::runtime;
use put_client::{
@@ -16,8 +18,11 @@
};
lazy_static! {
- static ref RUNTIME: runtime::Runtime = runtime::Runtime::new()
- .expect("Unable to create tokio runtime");
+ static ref RUNTIME: runtime::Runtime = {
+ env_logger::init();
+ info!("Creating tokio runtime");
+ runtime::Runtime::new().expect("Unable to create tokio runtime")
+ };
}
#[cxx::bridge]

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 7:56 AM (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2519266
Default Alt Text
D5124.diff (701 B)

Event Timeline