Re: Very simple WSGI question

2008-11-22 Thread Manlio Perillo
Il Mon, 17 Nov 2008 01:35:19 +, Matthew Wilson ha scritto: > I want to write some middleware to notice when the inner app returns a > 500 status code. I'm sure there are already sophisticated loggers that > do this sort of thing, but I'm using this as a learning exercise. > > Right now, I wr

Very simple WSGI question

2008-11-16 Thread Matthew Wilson
I want to write some middleware to notice when the inner app returns a 500 status code. I'm sure there are already sophisticated loggers that do this sort of thing, but I'm using this as a learning exercise. Right now, I wrapped the start_response callable. So when the WSGI application calls the