Skip to content

Commit

Permalink
Improve error log by printing full error detail
Browse files Browse the repository at this point in the history
Couldn't find any other instances of that in a quick search, but a lint
would be nice...
  • Loading branch information
LukasKalbertodt committed Feb 22, 2024
1 parent 3fe339f commit 5f6b4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/auth/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ pub(crate) async fn handle_post_login(req: Request<Body>, ctx: &Context) -> Resp
LoginCredentialsHandler::Opencast => {
match check_opencast_login(&userid, &password, &ctx.config.opencast).await {
Err(e) => {
error!("Error occured while checking Opencast login data: {e}");
error!("Error occured while checking Opencast login data: {e:#}");
return http::response::internal_server_error();
}
Ok(user) => user,
Expand Down

0 comments on commit 5f6b4db

Please sign in to comment.