Skip to content

Commit

Permalink
print from_cache value
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Oct 1, 2024
1 parent 1656e0b commit cdc1795
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions adabot/github_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def request(method, url, **kwargs):
_fix_url(url), timeout=TIMEOUT, **_fix_kwargs(kwargs)
)
from_cache = getattr(response, "from_cache", False)
print(f"from_cache ? {from_cache}")
print(f"headers: {response.headers}")
print(f"content: {response.content}")
print(f"X-RateLimit-Remaining header found ? {'X-RateLimit-Remaining' in response.headers}")
Expand Down

0 comments on commit cdc1795

Please sign in to comment.