Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tianj7 committed Sep 26, 2023
1 parent c9d8f48 commit ea857c0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions fence/blueprints/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,14 @@ def get_token(*args, **kwargs):
# Delete after testing temporary logs
request = server.create_oauth2_request(None)
for (grant_cls, extensions) in server._token_grants:
logger.error("request.grant_type:" + request.grant_type)
logger.error("grant_cls.GRANT_TYPE:" + grant_cls.GRANT_TYPE)
logger.error("request.method:" + request.method)
logger.error(
logger.debug("grant_cls.GRANT_TYPE:" + grant_cls.GRANT_TYPE)
if request.grant_type:
logger.debug("request.grant_type:" + request.grant_type)
else:
logger.debug("request.grant_type is None")

logger.debug("request.method:" + request.method)
logger.debug(
"grant_cls.TOKEN_ENDPOINT_HTTP_METHODS:"
+ " ".join(grant_cls.TOKEN_ENDPOINT_HTTP_METHODS)
)
Expand Down

0 comments on commit ea857c0

Please sign in to comment.