Skip to content

Instantly share code, notes, and snippets.

@clayg

clayg/kasploded.py

Created Oct 13, 2015
Embed
What would you like to do?
dig on your errors like `python kasploded.py /tmp/ssbench-results/whatever.tar.gz -v`
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