Wrap handle_keys with debug statement

Change-Id: I4f4710a87ff495f993cf7b31123a66c7ba043144
This commit is contained in:
Monty Taylor 2017-08-01 18:24:08 -05:00
parent bb871ba814
commit ac37ff55f8
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 5 additions and 1 deletions

View File

@ -137,7 +137,11 @@ class WebApp(threading.Thread):
path = request.path.replace('/' + tenant_name, '')
# Handle keys
if path.startswith('/keys'):
return self._handle_keys(request, path)
try:
return self._handle_keys(request, path)
except Exception as e:
self.log.exception("Issue with _handle_keys")
raise
for path_re, handler in self.routes.values():
if path_re.match(path):
return handler(path, tenant_name, request)