Last ditch attempt to log main() thread crashes.

pull/35/head
David Wilson 9 years ago
parent 013634a317
commit ee56032758

@ -831,6 +831,7 @@ class ExternalContext(object):
def main(self, key, log_level): def main(self, key, log_level):
self._setup_master(key) self._setup_master(key)
try:
try: try:
self._setup_logging(log_level) self._setup_logging(log_level)
self._setup_importer() self._setup_importer()
@ -839,7 +840,10 @@ class ExternalContext(object):
self.broker.register(self.context) self.broker.register(self.context)
self._dispatch_calls() self._dispatch_calls()
LOG.debug('ExternalContext.main() exitting') LOG.debug('ExternalContext.main() normal exit')
except Exception:
LOG.exception('ExternalContext.main() crashed')
raise
finally: finally:
self.broker.shutdown() self.broker.shutdown()
self.broker.join() self.broker.join()

Loading…
Cancel
Save