mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-13 21:13:01 +00:00
@@ -70,6 +70,7 @@ def _scrub_uri(uri):
|
|||||||
# use manual list + split rather than parsing
|
# use manual list + split rather than parsing
|
||||||
# to minimally perturb original
|
# to minimally perturb original
|
||||||
parts = parsed.query.split('&')
|
parts = parsed.query.split('&')
|
||||||
|
changed = False
|
||||||
for i, s in enumerate(parts):
|
for i, s in enumerate(parts):
|
||||||
if '=' in s:
|
if '=' in s:
|
||||||
key, value = s.split('=', 1)
|
key, value = s.split('=', 1)
|
||||||
@@ -153,6 +154,6 @@ def log_request(handler):
|
|||||||
# to get headers from tornado
|
# to get headers from tornado
|
||||||
location = handler._headers.get('Location')
|
location = handler._headers.get('Location')
|
||||||
if location:
|
if location:
|
||||||
ns['location'] = ' -> {}'.format(location)
|
ns['location'] = ' -> {}'.format(_scrub_uri(location))
|
||||||
log_method(msg.format(**ns))
|
log_method(msg.format(**ns))
|
||||||
prometheus_log_method(handler)
|
prometheus_log_method(handler)
|
||||||
|
Reference in New Issue
Block a user