Commit 95e64fcc authored by Arnaud Fontaine's avatar Arnaud Fontaine

Display exception error in the log file as well

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@46006 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 184c4720
...@@ -483,9 +483,12 @@ class BenchmarkProcess(multiprocessing.Process): ...@@ -483,9 +483,12 @@ class BenchmarkProcess(multiprocessing.Process):
exit_msg = str(e) exit_msg = str(e)
exit_status = 1 exit_status = 1
except Exception, e: except BaseException, e:
exit_msg = e exit_msg = e
exit_status = 2 exit_status = 2
if exit_msg:
self._logger.error(exit_msg)
self._exit_msg_queue.put(exit_msg) self._exit_msg_queue.put(exit_msg)
sys.exit(exit_status) sys.exit(exit_status)
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