feat: use a logging library
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
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:
parent
80111af3de
commit
481c2c3648
11 changed files with 41 additions and 27 deletions
|
@ -1,6 +1,7 @@
|
|||
use std::{str::FromStr, time::{SystemTime, UNIX_EPOCH}};
|
||||
|
||||
use actix_web::{web, HttpResponse, Scope};
|
||||
use log::error;
|
||||
use sqlx::Postgres;
|
||||
use uuid::Uuid;
|
||||
|
||||
|
@ -36,7 +37,7 @@ pub async fn check_access_token<'a>(access_token: String, pool: &'a sqlx::Pool<P
|
|||
Ok(Uuid::from_str(&uuid).unwrap())
|
||||
},
|
||||
Err(error) => {
|
||||
eprintln!("{}", error);
|
||||
error!("{}", error);
|
||||
Err(HttpResponse::InternalServerError().finish())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue