This commit is contained in:
Chris Meyers
2017-02-21 10:25:29 -05:00
parent 98c8ff3475
commit 60aa22b01b
2 changed files with 1 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ class LogstashFormatter(LogstashFormatterVersion1):
(float, 'X-API-Query-Time'), # may also end with an 's'
(str, 'X-API-Node'),
]
data_for_log['x_api'] = { k: convert_to_type(t, response[k]) for (t, k) in headers }
data_for_log['x_api'] = {k: convert_to_type(t, response[k]) for (t, k) in headers}
data_for_log['request'] = {
'method': request.method,