Mercurial > kallithea
diff rhodecode/config/middleware.py @ 3489:d997a314d18a beta
moved time measure of request to separate middleware for better results (the last one in stack)
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Mar 2013 18:12:09 +0100 |
parents | dbe3cfb81446 |
children | e1568c0bac1f |
line wrap: on
line diff
--- a/rhodecode/config/middleware.py Wed Mar 06 16:31:22 2013 +0100 +++ b/rhodecode/config/middleware.py Wed Mar 06 18:12:09 2013 +0100 @@ -15,6 +15,7 @@ from rhodecode.lib.middleware.simplegit import SimpleGit from rhodecode.lib.middleware.https_fixup import HttpsFixup from rhodecode.config.environment import load_environment +from rhodecode.lib.middleware.wrapper import RequestWrapper def make_app(global_conf, full_stack=True, static_files=True, **app_conf): @@ -67,7 +68,7 @@ # need any pylons stack middleware in them app = SimpleHg(app, config) app = SimpleGit(app, config) - + app = RequestWrapper(app, config) # Display error documents for 401, 403, 404 status codes (and # 500 when debug is disabled) if asbool(config['debug']):