Commit c378da4e authored by Julien Muchembled's avatar Julien Muchembled

Do not panic on normal exit

In particular, do not flush all debug logs still in memory
parent 30ccff6e
...@@ -74,7 +74,7 @@ class Application(object): ...@@ -74,7 +74,7 @@ class Application(object):
def run(self): def run(self):
try: try:
self._run() self._run()
except: except Exception:
logging.exception('Pre-mortem data:') logging.exception('Pre-mortem data:')
self.log() self.log()
raise raise
......
...@@ -131,7 +131,7 @@ class Application(object): ...@@ -131,7 +131,7 @@ class Application(object):
def run(self): def run(self):
try: try:
self._run() self._run()
except: except Exception:
logging.exception('Pre-mortem data:') logging.exception('Pre-mortem data:')
self.log() self.log()
raise raise
......
...@@ -164,7 +164,7 @@ class Application(object): ...@@ -164,7 +164,7 @@ class Application(object):
def run(self): def run(self):
try: try:
self._run() self._run()
except: except Exception:
logging.exception('Pre-mortem data:') logging.exception('Pre-mortem data:')
self.log() self.log()
raise raise
......
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