diff options
author | Vika <vika@fireburn.ru> | 2022-05-07 22:07:14 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-05-07 22:07:14 +0300 |
commit | d82be2e5907a0c969697e371e38fb888f6ae22eb (patch) | |
tree | 37f42c30a24553dc1e96229bea5f1498742fdf85 | |
parent | 5dcc84c404a0a927e531af70e8c5ad637ba96f90 (diff) | |
download | kittybox-d82be2e5907a0c969697e371e38fb888f6ae22eb.tar.zst |
Don't enable tokio-console support in production
-rw-r--r-- | src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |