aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-02-09 13:03:13 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-02-09 13:08:59 +0100
commit36425acd25b67a537d2e17b3093b7536281cf14b (patch)
tree1196520844faa280f2b9ad56a8852aaa70a5e444
parentd79f43e1924fcb02a22b188f0e2482f5da708086 (diff)
downloadallocbench-36425acd25b67a537d2e17b3093b7536281cf14b.tar.gz
allocbench-36425acd25b67a537d2e17b3093b7536281cf14b.zip
print debug message with exception traceback during server startup
-rw-r--r--src/benchmark.py3
1 files changed, 2 insertions, 1 deletions
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