470,590 Members | 2,620 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

Very simple WSGI question

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 start response callable, I look at the first arg
passed in and do my test.

What's the right way to do this?

Nov 17 '08 #1
0 972

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Thomas W | last post: by
1 post views Thread by seberino | last post: by
11 posts views Thread by Gregory Piñero | last post: by
7 posts views Thread by Ben Finney | last post: by
2 posts views Thread by Adam Atlas | last post: by
8 posts views Thread by Ron Garret | last post: by
37 posts views Thread by Michele Simionato | last post: by
4 posts views Thread by inhahe | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.