From 4aa1d6cecd8ee25a7e675b57536025ebf8f8764b Mon Sep 17 00:00:00 2001 From: Kent Tristan Yves Sarmiento Date: Wed, 27 Dec 2023 17:16:43 +0800 Subject: [PATCH] fix: remove tracing_subscriber in shuttle app (#41) --- Cargo.lock | 1 - link-for-later-shuttle/Cargo.toml | 1 - link-for-later-shuttle/src/main.rs | 6 ------ 3 files changed, 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 55c0842..bbfd1a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1387,7 +1387,6 @@ dependencies = [ "shuttle-shared-db", "tokio", "tracing", - "tracing-subscriber", ] [[package]] diff --git a/link-for-later-shuttle/Cargo.toml b/link-for-later-shuttle/Cargo.toml index 71182ce..e0d7a1b 100644 --- a/link-for-later-shuttle/Cargo.toml +++ b/link-for-later-shuttle/Cargo.toml @@ -15,4 +15,3 @@ shuttle-runtime = "0.35.0" shuttle-shared-db = { version = "0.35.0", features = ["mongodb"] } tokio = { version = "1", features = ["macros"] } tracing = { version = "0.1", features = ["log"] } -tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt"] } diff --git a/link-for-later-shuttle/src/main.rs b/link-for-later-shuttle/src/main.rs index 4925874..8529a1e 100644 --- a/link-for-later-shuttle/src/main.rs +++ b/link-for-later-shuttle/src/main.rs @@ -2,12 +2,6 @@ use mongodb::Database; #[shuttle_runtime::main] async fn main(#[shuttle_shared_db::MongoDb] db: Database) -> shuttle_axum::ShuttleAxum { - tracing_subscriber::fmt() - .with_max_level(tracing::Level::DEBUG) - .with_target(false) - .without_time() - .init(); - let app = link_for_later::app::new(link_for_later::DatabaseType::MongoDb(db)); Ok(app.into()) }