From 56ebf2e3766e52133ceae029cec36666c7d7dea1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 13 Jul 2024 11:33:46 +0200 Subject: [PATCH] Set default log level to info --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 181b0ff..0c5b4b3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ use log::{debug, info}; #[actix_web::main] async fn main() -> std::io::Result<()> { - env_logger::init(); + env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); let pool: sqlx::PgPool = sqlx::Pool::::connect( &env::var("DATABASE_URL").expect("DATABASE_URL must be set"),