From 817d44e17a39f2015284bed47aab4cd24d1845d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 20 Oct 2022 12:18:17 +0400 Subject: [PATCH] qemu-rdw: add some setup tracing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc-André Lureau --- qemu-rdw/Cargo.toml | 1 + qemu-rdw/src/main.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/qemu-rdw/Cargo.toml b/qemu-rdw/Cargo.toml index 2cbfd23..e168832 100644 --- a/qemu-rdw/Cargo.toml +++ b/qemu-rdw/Cargo.toml @@ -20,3 +20,4 @@ futures-util = "0.3" futures = "0.3" async-trait = "0.1" uds_windows = "1.0.2" +tracing-subscriber = { version = "0.3.11", features = ["env-filter" , "fmt"], default-features = false } diff --git a/qemu-rdw/src/main.rs b/qemu-rdw/src/main.rs index 5009f7b..7db0a92 100644 --- a/qemu-rdw/src/main.rs +++ b/qemu-rdw/src/main.rs @@ -295,6 +295,10 @@ impl App { fn main() { pretty_env_logger::init(); + tracing_subscriber::fmt::init(); + unsafe { + rdw::setup_logger(log::logger(), log::max_level()).unwrap(); + } let app = App::new(); app.run();