Skip to content

Commit ad79cc1

Browse files
authored
Debug ratelimit info (#168)
1 parent 92b1189 commit ad79cc1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

miss_islington/__main__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ async def main(request):
4040
await router.dispatch(event, gh)
4141
try:
4242
print(
43-
f"GH requests remaining: {gh.rate_limit.remaining}/{gh.rate_limit.limit}, reset time: {gh.rate_limit.reset_datetime:%b-%d-%Y %H:%M:%S %Z}"
43+
f"""\
44+
GH requests remaining: {gh.rate_limit.remaining}/{gh.rate_limit.limit}, \
45+
reset time: {gh.rate_limit.reset_datetime:%b-%d-%Y %H:%M:%S %Z}, \
46+
oauth token length {len(oauth_token)}, \
47+
last 4 digits {oauth_token[-4:]}, \
48+
GH delivery ID {event.delivery_id} \
49+
"""
4450
)
4551
except AttributeError:
4652
pass

0 commit comments

Comments
 (0)