Put less semi-duplicate data in error log.

This commit is contained in:
Rasmus Kaj 2023-03-04 17:28:00 +01:00
parent 31c5823464
commit 80df975074
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ The format is based on
## Unreleased
* Removed unnessesary id columns from relation tables.
* Put less semi-duplicate data in error log.
## Release 0.12.0 (2023-02-26)

View File

@ -78,7 +78,7 @@ impl GlobalContext {
.map_err(|e| format!("Bad jwt token: {e:?}"))?;
if !verify_token(&token, self.jwt_secret.as_ref())? {
return Err(format!("Invalid token {token:?}"));
return Err(format!("Invalid token {:?}", token.payload));
}
let claims = token.payload;
debug!("Verified token for: {:?}", claims);