Skip to content

Instantly share code, notes, and snippets.

@clayg
Created October 13, 2015 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/f38d364a418f2c959984 to your computer and use it in GitHub Desktop.
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`
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