Skip to content

Commit 0c26760

Browse files
committed
feat: add log messages for HTTP monitor
1 parent 661cc67 commit 0c26760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

discordgsm/protocols/http.py

+2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ async def query(self):
2424
)
2525

2626
start = time.time()
27+
Logger.info(f"Querying {url} to check it its is online...")
2728
async with aiohttp.ClientSession() as session:
2829
async with session.get(url) as response:
2930
status = response.status
3031
content = await response.text()
3132
end = time.time()
33+
Logger.info(f"Finished check if {url} is online!")
3234

3335
if not status == status_code:
3436
raise Exception(f"Received unexpected status code {status}")

0 commit comments

Comments
 (0)