mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-25 23:24:19 +00:00
Print exceptions to the console for easier debugging
This commit is contained in:
parent
7f4087e046
commit
611eb7e1db
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ class ChatWorker(threading.Thread):
|
||||||
# If the Sentry integration is enabled, log the exception
|
# If the Sentry integration is enabled, log the exception
|
||||||
if self.sentry_client is not None:
|
if self.sentry_client is not None:
|
||||||
self.sentry_client.captureException()
|
self.sentry_client.captureException()
|
||||||
|
traceback.print_exception(*sys.exc_info())
|
||||||
|
|
||||||
def stop(self, reason: str = ""):
|
def stop(self, reason: str = ""):
|
||||||
"""Gracefully stop the worker process"""
|
"""Gracefully stop the worker process"""
|
||||||
|
|
Loading…
Reference in a new issue