From 95e64fcc0ab7e51217d802479fe7b26e3059f7ef Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Mon, 29 Aug 2011 09:20:53 +0000 Subject: [PATCH] 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 --- erp5/util/benchmark/benchmark.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erp5/util/benchmark/benchmark.py b/erp5/util/benchmark/benchmark.py index 6c3e78da6b..beb4b57a52 100644 --- a/erp5/util/benchmark/benchmark.py +++ b/erp5/util/benchmark/benchmark.py @@ -483,9 +483,12 @@ class BenchmarkProcess(multiprocessing.Process): exit_msg = str(e) exit_status = 1 - except Exception, e: + except BaseException, e: exit_msg = e exit_status = 2 + if exit_msg: + self._logger.error(exit_msg) + self._exit_msg_queue.put(exit_msg) sys.exit(exit_status) -- 2.30.9