Skip to content

Commit

Permalink
Improved logging so that we know what an exception to capture.
Browse files Browse the repository at this point in the history
  • Loading branch information
ateska authored Jan 26, 2024
1 parent 0791afa commit f3c2c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asab/library/providers/libsreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ async def _periodic_pull(self, event_name):
L.error("Failed to download the library.", struct_data={"url": url, 'status': response.status})

except aiohttp.ClientError as e:
L.error("Failed to download the library.", struct_data={"url": url, 'exception': e})
L.error("Failed to download the library (ClientError).", struct_data={"url": url, 'error': e, 'exception': e.__class__.__name__})

except asyncio.TimeoutError as e:
L.error("Failed to download the library.", struct_data={"url": url, 'exception': e})
L.error("Failed to download the library (TimeoutError).", struct_data={"url": url, 'error': e, 'exception': e.__class__.__name__})


async def subscribe(self, path):
Expand Down

0 comments on commit f3c2c67

Please sign in to comment.