~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/apps/error.py

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 01:00:32 UTC
  • mto: This revision was merged to the branch mainline in revision 426.
  • Revision ID: john@arbash-meinel.com-20110210010032-3c1ngxr9rlnlla6o
Avoid getting a lazy object error by instantiating an
http transport before we do any other work.
Add a script which works against multiple concurrent services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
 
55
55
def errapp(environ, start_response):
56
 
    '''Default (and trivial) error handling WSGI application.'''
 
56
    """Default (and trivial) error handling WSGI application."""
57
57
    c = ErrorUI(environ['branch'], environ['exc_info'])
58
58
    return c(environ, start_response)