-
-
Save mpurzynski/4ac4536a3d6455355eb23826165e5de8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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