From 399d340187171420b5f1fcf524906aadd04be5d6 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 24 Jan 2024 18:19:05 +0100 Subject: Sure I'll add another dependency, just tell me what the problem is --- rs/server/Cargo.toml | 1 + rs/server/src/main.rs | 2 ++ 2 files changed, 3 insertions(+) (limited to 'rs/server') diff --git a/rs/server/Cargo.toml b/rs/server/Cargo.toml index ac2b10b..edb76d8 100644 --- a/rs/server/Cargo.toml +++ b/rs/server/Cargo.toml @@ -16,3 +16,4 @@ serde_json = "1" tokio = { version = "1.35", features = ["full"] } tokio-util = "0.7" tower = "0.4" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } diff --git a/rs/server/src/main.rs b/rs/server/src/main.rs index 0a37155..b346bc6 100644 --- a/rs/server/src/main.rs +++ b/rs/server/src/main.rs @@ -160,6 +160,8 @@ fn get_s3_client(env: &Env) -> Result { #[tokio::main] async fn main() -> ExitCode { + tracing_subscriber::fmt::init(); + let env = match Env::load() { Ok(env) => env, Err(e) => { -- cgit v1.2.3