Merge "Delete profiler object when request completes"

This commit is contained in:
Zuul 2018-07-31 19:34:49 +00:00 committed by Gerrit Code Review
commit a5a5e19b22
3 changed files with 5 additions and 2 deletions

View File

@ -71,7 +71,7 @@ oslo.policy==1.30.0
oslo.serialization==2.18.0
oslo.service==1.24.0
oslo.utils==3.33.0
osprofiler==1.4.0
osprofiler==2.3.0
Paste==2.0.2
PasteDeploy==1.5.0
pbr==2.0.0

View File

@ -141,5 +141,8 @@ class ProfilerMiddleware(object):
response.set_cookie('profile_page', max_age=0, path=path)
def process_response(self, request, response):
if profiler.get() is not None:
profiler.clean()
self.clear_profiling_cookies(request, response)
return response

View File

@ -25,7 +25,7 @@ oslo.i18n>=3.15.3 # Apache-2.0
oslo.policy>=1.30.0 # Apache-2.0
oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
oslo.utils>=3.33.0 # Apache-2.0
osprofiler>=1.4.0 # Apache-2.0
osprofiler>=2.3.0 # Apache-2.0
Pint>=0.5 # BSD
pymongo!=3.1,>=3.0.2 # Apache-2.0
pyScss!=1.3.5,>=1.3.4 # MIT License