Set default log level to info
This commit is contained in:
parent
2438e1e801
commit
56ebf2e376
|
@ -9,7 +9,7 @@ use log::{debug, info};
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
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(
|
let pool: sqlx::PgPool = sqlx::Pool::<sqlx::postgres::Postgres>::connect(
|
||||||
&env::var("DATABASE_URL").expect("DATABASE_URL must be set"),
|
&env::var("DATABASE_URL").expect("DATABASE_URL must be set"),
|
||||||
|
|
Loading…
Reference in a new issue