From d82be2e5907a0c969697e371e38fb888f6ae22eb Mon Sep 17 00:00:00 2001 From: Vika Date: Sat, 7 May 2022 22:07:14 +0300 Subject: Don't enable tokio-console support in production --- src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/main.rs b/src/main.rs index f9815f3..ec6c95f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,7 @@ use warp::{Filter, host::Authority}; #[tokio::main] async fn main() { + #[cfg(debug_assertions)] console_subscriber::init(); // TODO json logging in the future? let logger_env = env_logger::Env::new().filter_or("RUST_LOG", "info"); -- cgit 1.4.1