summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-18 19:25:42 +0000
committerGerrit Code Review <review@openstack.org>2018-06-18 19:25:42 +0000
commit4b5d77da37316594364e2137210b7e6abe9f9761 (patch)
treeb0940d1fee37d59abf4f95c547ad0d828b8028d9
parent640d8348b5f282a404ae2c3f501b3cf8e070b911 (diff)
parent39e4c3634477723790ca4aad57eab5e6b7f34703 (diff)
Merge "Same line logs"
-rw-r--r--mixmatch/proxy.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mixmatch/proxy.py b/mixmatch/proxy.py
index 2001997..4e56b8a 100644
--- a/mixmatch/proxy.py
+++ b/mixmatch/proxy.py
@@ -64,10 +64,10 @@ def strip_tokens_from_headers(headers):
64def format_for_log(title=None, method=None, url=None, headers=None, 64def format_for_log(title=None, method=None, url=None, headers=None,
65 status_code=None): 65 status_code=None):
66 return ''.join([ 66 return ''.join([
67 '{}:\n'.format(title) if title else '', 67 '{}: '.format(title) if title else '',
68 'Method: {}\n'.format(method) if method else '', 68 'Method: {}, '.format(method) if method else '',
69 'URL: {}\n'.format(url) if url else '', 69 'URL: {}, '.format(url) if url else '',
70 'Headers: {}\n'.format( 70 'Headers: {}, '.format(
71 strip_tokens_from_headers(headers)) if headers else '', 71 strip_tokens_from_headers(headers)) if headers else '',
72 'Status Code: {}\n'.format(status_code) if status_code else '' 72 'Status Code: {}\n'.format(status_code) if status_code else ''
73 ]) 73 ])