diff --git a/CHANGELOG.md b/CHANGELOG.md index d3df13b..e3d8a37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/server/context.rs b/src/server/context.rs index d2f31d0..e6d1324 100644 --- a/src/server/context.rs +++ b/src/server/context.rs @@ -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);