We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 661cc67 commit 0c26760Copy full SHA for 0c26760
discordgsm/protocols/http.py
@@ -24,11 +24,13 @@ async def query(self):
24
)
25
26
start = time.time()
27
+ Logger.info(f"Querying {url} to check it its is online...")
28
async with aiohttp.ClientSession() as session:
29
async with session.get(url) as response:
30
status = response.status
31
content = await response.text()
32
end = time.time()
33
+ Logger.info(f"Finished check if {url} is online!")
34
35
if not status == status_code:
36
raise Exception(f"Received unexpected status code {status}")
0 commit comments