Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Added logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Feb 19, 2021
1 parent 40263aa commit 17529f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ impl<'a, 'r> FromRequest<'a, 'r> for LoggedUser {
let gh_user = runtime.block_on(current_user(token_value)).map_err(|err| {
// A token is present, but can't be used to access user details
clear(cookies);
log::warn!("Error while accessing user details{}", err);
Err((
Status::BadRequest,
format!("Can't access user details {}", err),
Expand Down

0 comments on commit 17529f4

Please sign in to comment.