1
0

crash reporter: add EarlyExceptionsQueue

`util.send_exception_to_crash_reporter` is now useful and can be transparently
used even before the exception hook is set up.
This commit is contained in:
SomberNight
2021-11-05 19:55:22 +01:00
parent e0246b30b9
commit c331c311db
6 changed files with 44 additions and 8 deletions

View File

@@ -487,8 +487,6 @@ class Daemon(Logger):
if self.config.get('use_gossip', False):
self.network.start_gossip()
self.exception = None # type: Optional[Exception]
self._stop_entered = False
self._stopping_soon_or_errored = threading.Event()
self._stopped_event = threading.Event()
@@ -508,7 +506,6 @@ class Daemon(Logger):
raise
except Exception as e:
self.logger.exception("taskgroup died.")
self.exception = e
util.send_exception_to_crash_reporter(e)
finally:
self.logger.info("taskgroup stopped.")