Skip to content

Commit

Permalink
Fix log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
shrir committed Jan 8, 2025
1 parent d1da60c commit 5df9ccd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/lib/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ async def search_repos(
response = await client.get(url, params=params)
if response.status_code != 200 or not response.text:
error_msg = "Error searching for repos."
await logger.awarn(error_msg, query=query, sort=sort, order=order, page=page, per_page=per_page)
await logger.aerror(
error_msg, query=query, sort=sort, order=order, page=page, per_page=per_page, response=response.content,
)
raise LookupError(error_msg)

repos_data = response.json()
Expand Down

0 comments on commit 5df9ccd

Please sign in to comment.