Set default log level to info

This commit is contained in:
Simon Bruder 2024-07-13 11:33:46 +02:00
parent 2618b00779
commit d4b2ecfcea
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -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::<sqlx::postgres::Postgres>::connect(
&env::var("DATABASE_URL").expect("DATABASE_URL must be set"),