By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,478 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

Very simple WSGI question

P: n/a
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?

Matt
Nov 17 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.