Commit e21d0349 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use format_exc instead of format_stack to report the right exception.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2454 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b56cd93a
...@@ -89,7 +89,7 @@ class MatrixImportBenchmark(BenchmarkRunner): ...@@ -89,7 +89,7 @@ class MatrixImportBenchmark(BenchmarkRunner):
traceback.print_exc() traceback.print_exc()
self.error_log += "Import with m=%s, s=%s, r=%s, p=%s:" % ( self.error_log += "Import with m=%s, s=%s, r=%s, p=%s:" % (
masters, storages, replicas, partitions) masters, storages, replicas, partitions)
self.error_log += "\n%s\n" % ''.join(traceback.format_stack()) self.error_log += "\n%s\n" % ''.join(traceback.format_exc())
return None return None
finally: finally:
neo.stop() neo.stop()
......
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