From 36425acd25b67a537d2e17b3093b7536281cf14b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 9 Feb 2020 13:03:13 +0100 Subject: print debug message with exception traceback during server startup --- src/benchmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/benchmark.py b/src/benchmark.py index 6debefd..0ec388f 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -8,6 +8,7 @@ import multiprocessing import os import subprocess from time import sleep +import traceback import matplotlib.pyplot as plt import numpy as np @@ -383,6 +384,7 @@ class Benchmark: try: self.start_servers(alloc_name=alloc_name, alloc=alloc, env=env) except Exception as e: + print_debug(traceback.format_exc()) print_error(e) print_error("Skipping", alloc_name) skip = True @@ -576,7 +578,6 @@ class Benchmark: try: s = evaluation.format(**self.results["stats"][alloc][perm][stat]) except KeyError as e: - import traceback print_warn(traceback.format_exc()) print_warn(f"For {alloc} in {perm}") return nan -- cgit v1.2.3