From 6958b092c50367c9e7667f8cb46c7d74578693f6 Mon Sep 17 00:00:00 2001 From: J-Loudet Date: Wed, 7 Feb 2024 13:38:59 +0100 Subject: [PATCH] feat(standalone-runtime): initiates a `tracing_subscriber` at start (#175) * feat(standalone-runtime): initiates a `tracing_subscriber` at start Signed-off-by: Julien Loudet --- zenoh-flow-standalone-runtime/Cargo.toml | 2 ++ zenoh-flow-standalone-runtime/src/main.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/zenoh-flow-standalone-runtime/Cargo.toml b/zenoh-flow-standalone-runtime/Cargo.toml index 4345eb62..3e588bdc 100644 --- a/zenoh-flow-standalone-runtime/Cargo.toml +++ b/zenoh-flow-standalone-runtime/Cargo.toml @@ -29,6 +29,8 @@ async-std = { workspace = true } clap = { workspace = true } uhlc = { workspace = true } serde = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } zenoh-flow-commons = { workspace = true } zenoh-flow-descriptors = { workspace = true } zenoh-flow-records = { workspace = true } diff --git a/zenoh-flow-standalone-runtime/src/main.rs b/zenoh-flow-standalone-runtime/src/main.rs index d96bbb0e..88d4abe1 100644 --- a/zenoh-flow-standalone-runtime/src/main.rs +++ b/zenoh-flow-standalone-runtime/src/main.rs @@ -35,6 +35,7 @@ struct Cli { #[async_std::main] async fn main() { + let _ = tracing_subscriber::fmt::try_init(); let cli = Cli::parse(); let extensions = match cli.extensions {