Skip to content

Commit 9da4183

Browse files
committed
Log API responses
1 parent f72d3d5 commit 9da4183

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/tito.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import aiohttp
1+
import aiohttp, logging
22

33
TITO_API_ROOT = "https://api.tito.io/v3"
44

@@ -21,6 +21,7 @@ async def fetch_question_answers(self, question_slug: str) -> list[dict]:
2121
async with aiohttp.ClientSession() as session:
2222
async with session.get(endpoint, headers=self.base_headers) as response:
2323
answers = await response.json()
24+
logging.debug(answers)
2425
return [TitoAnswer.from_json(a) for a in answers.get("answers", [])]
2526

2627

0 commit comments

Comments
 (0)