Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3277604
D5124.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
701 B
Referenced Files
None
Subscribers
None
D5124.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D5124: [Backup] Initialize logger with tokio runtime
Attached
Detach File
Event Timeline
Log In to Comment