fix: format + tracing
This commit is contained in:
@@ -41,7 +41,7 @@ pub async fn auth_middleware(mut request: Request, next: Next) -> Result<Respons
|
||||
Ok(next.run(request).await)
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("JWT validation failed: {:?}", e);
|
||||
tracing::error!("JWT validation failed: {:?}", e);
|
||||
Err(StatusCode::UNAUTHORIZED)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user