Skip to content

Commit

Permalink
Cleanup exception logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tehkillerbee committed Feb 19, 2024
1 parent d1c9f20 commit 979e6cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tidalapi/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ def request(
try:
request.raise_for_status()
except Exception as e:
print("Got exception", e)
print("Response was", e.response)
print("Response json was", e.response.json())
log.info("Got exception {}".format(e))
log.debug("Response json was {}".format(e.response.json()))
if request.content:
log.debug("response: %s", json.dumps(request.json(), indent=4))
return request
Expand Down

0 comments on commit 979e6cc

Please sign in to comment.