HoneyPy icon indicating copy to clipboard operation
HoneyPy copied to clipboard

Improve exception handling in log triage

Open foospidy opened this issue 8 years ago • 0 comments

Need to improve exception handling or log messages that get parsed by honeypy_log_triage.py.

Example log message that ends up in tweets

>>> line="        details: {u'errors': [{u'message': u'User is over daily status update limit.', u'code': 185}]}"
>>> parts=line.split()
>>> pprint.pprint(parts)
['details:',
 "{u'errors':",
 "[{u'message':",
 "u'User",
 'is',
 'over',
 'daily',
 'status',
 'update',
 "limit.',",
 "u'code':",
 '185}]}']```

Temporary "hacky" fix in this commit https://github.com/foospidy/HoneyPy/commit/e68d84e243d4cac7e837e711730f866eef6aecb9

foospidy avatar Apr 11 '17 09:04 foospidy