Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed May 22, 2024
1 parent bbde888 commit d743472
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rest_tools/client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ async def request_and_validate(
LOGGER.error(
f"OpenAPI response validator encountered an error: '{e}'; more info below."
)
LOGGER.info(vars(response.request))
LOGGER.info(vars(response))
LOGGER.info(rc._decode(response.content))
LOGGER.info(f"request: {vars(response.request)}")
LOGGER.info(f"response: {vars(response)}")
LOGGER.info(f"response.content: {rc._decode(response.content)}")
assert 0
raise

Expand Down

0 comments on commit d743472

Please sign in to comment.