Commit 6b410098 authored by Julien Muchembled's avatar Julien Muchembled

When aborting, flush log containing pre-mortem data

parent 93aef5ed
...@@ -77,6 +77,7 @@ class Application(object): ...@@ -77,6 +77,7 @@ class Application(object):
except Exception: except Exception:
logging.exception('Pre-mortem data:') logging.exception('Pre-mortem data:')
self.log() self.log()
logging.flush()
raise raise
def _run(self): def _run(self):
......
...@@ -134,6 +134,7 @@ class Application(object): ...@@ -134,6 +134,7 @@ class Application(object):
except Exception: except Exception:
logging.exception('Pre-mortem data:') logging.exception('Pre-mortem data:')
self.log() self.log()
logging.flush()
raise raise
def _run(self): def _run(self):
......
...@@ -167,6 +167,7 @@ class Application(object): ...@@ -167,6 +167,7 @@ class Application(object):
except Exception: except Exception:
logging.exception('Pre-mortem data:') logging.exception('Pre-mortem data:')
self.log() self.log()
logging.flush()
raise raise
def _run(self): def _run(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment