Skip to content

Instantly share code, notes, and snippets.

@mpurzynski
Created August 11, 2017 21:06
Show Gist options
  • Select an option

  • Save mpurzynski/4ac4536a3d6455355eb23826165e5de8 to your computer and use it in GitHub Desktop.

Select an option

Save mpurzynski/4ac4536a3d6455355eb23826165e5de8 to your computer and use it in GitHub Desktop.
if logtype == 'http':
if 'method' not in msgdetailskeys:
newmessage['details'][u'method'] = ''
if 'host' not in msgdetailskeys:
newmessage['details'][u'host'] = ''
if 'uri' not in msgdetailskeys:
newmessage['details'][u'uri'] = ''
if 'status_code' not in msgdetailskeys:
newmessage['details'][u'status_code'] = ''
newmessage[u'summary'] = (
u'{method} '+
u'{host} '+
u'{uri} '+
u'{status_code}'
).format(**newmessage['details'])
return (newmessage, metadata)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment