From 0803b49e4961c81588795ee47e45eca64f24919d Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Mon, 18 Mar 2013 09:21:35 +1300 Subject: [PATCH] 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 --- heat/common/wsgi.py | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.45.2