tests: refactor code to use a single test url generator
This commit is contained in:
parent
28f89c682d
commit
6e5314f631
67 changed files with 401 additions and 1277 deletions
|
|
@ -258,6 +258,8 @@ def error_handler(exception, request):
|
|||
'/errors/error_document.mako', {'c': c, 'h': helpers}, request=request,
|
||||
response=base_response)
|
||||
|
||||
response.headers["X-RC-Exception-Id"] = str(c.exception_id)
|
||||
|
||||
statsd = request.registry.statsd
|
||||
if statsd and base_response.status_code > 499:
|
||||
exc_type = f"{exception.__class__.__module__}.{exception.__class__.__name__}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue