Skip to content

Commit 1480a62

Browse files
authored
[DOP-24163] add more verbose error message (#191)
* [DOP-24163] add more verbose error message * [DOP-24163] move message to logs * [DOP-24163] add %s syntax * [DOP-24163] change to raw format
1 parent a30544f commit 1480a62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

data_rentgen/server/providers/auth/keycloak_provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ async def get_token_authorization_code_grant(
6464
redirect_uri=self.settings.keycloak.redirect_uri,
6565
)
6666
except KeycloakOperationError as e:
67+
logger.exception("Fail to get token from keycloak: %s", e) # noqa: TRY401
6768
msg = "Failed to get token"
6869
raise AuthorizationError(msg) from e
6970

0 commit comments

Comments
 (0)