Skip to content

Commit

Permalink
fix debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ioigoume committed Oct 18, 2023
1 parent d1c40da commit d973c4e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/utils/globalMethods.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def __init__(self, tag: str = "", skip: bool = False):

async def __call__(self, request: Request, response: Response):
self.logger.debug("""=============== Request Context =================""")
self.logger.debug("""Request Url: {0}""" . format(response.request.url))
self.logger.debug("""Request Body: {0}""" . format(response.request.body))
self.logger.debug("""Request Url: {0}""" . format(request.url))
self.logger.debug("""Request Headers: {0}""" . format(request.headers))

# config
authorize_file = 'authorize.' + g.tenant + '.' + g.environment + '.py'
Expand All @@ -46,7 +46,6 @@ async def __call__(self, request: Request, response: Response):
metadata = await rciam.load_server_metadata()

headers = {'Authorization': f'Bearer {access_token}'}
self.logger.debug("""Request Headers: {0}""" . format(headers))

resp = reqs.get(metadata['userinfo_endpoint'], headers=headers)
self.logger.debug("""User Info Endpoint Response: {0}""" . format(resp))
Expand Down

0 comments on commit d973c4e

Please sign in to comment.