Skip to content

Commit

Permalink
more prints
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Oct 1, 2024
1 parent 5828b36 commit 1656e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adabot/github_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def request(method, url, **kwargs):
from_cache = getattr(response, "from_cache", False)
print(f"headers: {response.headers}")
print(f"content: {response.content}")
print(f"X-RateLimit-Remaining header found ? {'X-RateLimit-Remaining' in response.headers}")
remaining = int(response.headers.get("X-RateLimit-Remaining", 0))
print(f"remaining value: {remaining}")
logging.debug(
"GET %s %s status=%s",
url,
Expand Down

0 comments on commit 1656e0b

Please sign in to comment.