diff --git a/crates/server/src/lib.rs b/crates/server/src/lib.rs index 46c13b8..8900ab7 100644 --- a/crates/server/src/lib.rs +++ b/crates/server/src/lib.rs @@ -5,7 +5,8 @@ use git_next_git::repository::RepositoryFactory; use git_next_server_actor::Server; use kxio::{fs::FileSystem, network::Network}; use std::path::PathBuf; -use tracing::{error, info, level_filters::LevelFilter}; +use tracing::{error, info}; +use tracing_subscriber::EnvFilter; pub fn init(fs: FileSystem) { let file_name = "git-next-server.toml"; @@ -64,7 +65,7 @@ pub fn init_logging() { .with_target(false) .with_file(true) .with_line_number(true) - .with_filter(LevelFilter::INFO); + .with_filter(EnvFilter::from_default_env()); tracing_subscriber::registry() .with(console_subscriber::ConsoleLayer::builder().spawn()) .with(subscriber)