diff --git a/server/src/main.rs b/server/src/main.rs index d3dbde2..96aa8fe 100755 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -20,7 +20,11 @@ use util::hex_string; #[actix_web::main] async fn main() -> std::io::Result<()> { - env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("debug")).init(); + let mut builder = env_logger::Builder::new(); + builder + .filter(None, log::LevelFilter::Debug) + .filter_module("sqlx", log::LevelFilter::Warn) + .init(); let data = ServerState::new().await; let capt_db = CaptchaState::new(); @@ -49,7 +53,7 @@ async fn main() -> std::io::Result<()> { App::new() .wrap(cors) .wrap(middleware::Compress::default()) - .wrap(middleware::Logger::default()) + .wrap(middleware::Logger::new("%s %r")) .wrap(middleware::NormalizePath::trim()) .service( scope("/api")