HoneyPy
HoneyPy copied to clipboard
Improve exception handling in log triage
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