mirror of
https://github.com/logos-storage/bittorrent-benchmarks.git
synced 2026-01-07 23:43:11 +00:00
chore: log stacktrace when repeated experiment fail
This commit is contained in:
parent
72a6d2d6e1
commit
83fc90343c
@ -136,9 +136,9 @@ class IteratedExperiment(Experiment, Generic[TExperiment]):
|
|||||||
try:
|
try:
|
||||||
experiment.run()
|
experiment.run()
|
||||||
self.successful_runs += 1
|
self.successful_runs += 1
|
||||||
except Exception as ex:
|
except Exception:
|
||||||
self.failed_runs += 1
|
self.failed_runs += 1
|
||||||
logger.error(ex)
|
logger.exception("Error running experiment repetition")
|
||||||
|
|
||||||
if self.failed_runs > 0 and self.raise_when_failures:
|
if self.failed_runs > 0 and self.raise_when_failures:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user