[sentry] use raven-aiohttp (#1967)

This commit is contained in:
Caleb Johnson
2018-08-04 01:44:58 -04:00
committed by Toby Harradine
parent e3bff7e87c
commit cf7cafc261
3 changed files with 17 additions and 0 deletions

View File

@@ -295,6 +295,13 @@ class Red(RedBase, discord.AutoShardedClient):
You're welcome Caleb.
"""
async def logout(self):
"""Logs out of Discord and closes all connections."""
if self._sentry_mgr:
await self._sentry_mgr.close()
await super().logout()
async def shutdown(self, *, restart: bool = False):
"""Gracefully quit Red.