Created
October 13, 2015 21:45
-
-
Save clayg/f38d364a418f2c959984 to your computer and use it in GitHub Desktop.
dig on your errors like `python kasploded.py /tmp/ssbench-results/whatever.tar.gz -v`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from datetime import datetime | |
from ssbench.run_results import RunResults | |
results = RunResults(sys.argv[1]) | |
_, data = results.read_results() | |
requests = list(data) | |
for r in requests: | |
for q in r: | |
if not q.get('exception'): | |
continue | |
print datetime.fromtimestamp(q['completed_at']), q['name'], q['exception'] | |
if '-v' in sys.argv: | |
print q['traceback'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment