feat: use a logging library
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

gives us logs from actix and sqlx that otherwise arent exposed to us
This commit is contained in:
Radical 2025-05-02 01:18:13 +02:00
parent 80111af3de
commit 481c2c3648
11 changed files with 41 additions and 27 deletions

View file

@ -1,6 +1,7 @@
use actix_web::{App, HttpServer, web};
use argon2::Argon2;
use clap::Parser;
use simple_logger::SimpleLogger;
use sqlx::{PgPool, Pool, Postgres};
use std::time::SystemTime;
mod config;
@ -28,6 +29,7 @@ struct Data {
#[tokio::main]
async fn main() -> Result<(), Error> {
SimpleLogger::new().with_level(log::LevelFilter::Info).with_colors(true).env().init().unwrap();
let args = Args::parse();
let config = ConfigBuilder::load(args.config).await?.build();