switch logging over to log & env_logger crate
This commit is contained in:
@@ -52,7 +52,7 @@ impl IntoResponse for SessionError {
|
||||
fn into_response(self) -> Response {
|
||||
match self {
|
||||
Self::DatabaseError(e) => {
|
||||
eprintln!("[ERROR] Database error occured: {e}");
|
||||
log::error!("[ERROR] Database error occured: {e}");
|
||||
(StatusCode::INTERNAL_SERVER_ERROR, ISE_MSG.into())
|
||||
}
|
||||
Self::NoSessionWithId(_) => (StatusCode::BAD_REQUEST, self.to_string()),
|
||||
|
||||
Reference in New Issue
Block a user