From: Steve Baker Date: Sun, 17 Mar 2013 20:21:35 +0000 (+1300) Subject: Create a wsgi factory method for Debug filter. X-Git-Tag: 2014.1~749^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0803b49e4961c81588795ee47e45eca64f24919d;p=openstack-build%2Fheat-build.git Create a wsgi factory method for Debug filter. This can be enabled by putting the following in the *-paste.ini file: [filter:debug] paste.filter_factory = heat.common.wsgi:filter_factory heat.filter_factory = heat.common.wsgi:debug_filter and adding 'debug' to the pipeline. This assisted with bug #1133792 Change-Id: I4c2d3194ac9673d095b4115d4b6f385fd2f4fa4e --- diff --git a/heat/common/wsgi.py b/heat/common/wsgi.py index 74183c50..7ce8d7a8 100644 --- a/heat/common/wsgi.py +++ b/heat/common/wsgi.py @@ -343,6 +343,10 @@ class Debug(Middleware): print +def debug_filter(app, conf, **local_conf): + return Debug(app) + + class Router(object): """ WSGI middleware that maps incoming requests to WSGI apps.