From 83fc90343ccf0bfa208a38419ce198c68618851f Mon Sep 17 00:00:00 2001 From: gmega Date: Sun, 12 Jan 2025 07:43:28 -0300 Subject: [PATCH] chore: log stacktrace when repeated experiment fail --- benchmarks/core/experiments/experiments.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/core/experiments/experiments.py b/benchmarks/core/experiments/experiments.py index 8665459..fefac2f 100644 --- a/benchmarks/core/experiments/experiments.py +++ b/benchmarks/core/experiments/experiments.py @@ -136,9 +136,9 @@ class IteratedExperiment(Experiment, Generic[TExperiment]): try: experiment.run() self.successful_runs += 1 - except Exception as ex: + except Exception: self.failed_runs += 1 - logger.error(ex) + logger.exception("Error running experiment repetition") if self.failed_runs > 0 and self.raise_when_failures: raise RuntimeError(