mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
add a quick test to make sure we get the sys.stderr
This commit is contained in:
parent
92c4c58208
commit
03a6136083
@ -6,6 +6,7 @@
|
|||||||
# Example code from Eventlet sources
|
# Example code from Eventlet sources
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import pprint
|
||||||
from wsgiref.validate import validator
|
from wsgiref.validate import validator
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@ -14,6 +15,9 @@ from gunicorn import __version__
|
|||||||
def app(environ, start_response):
|
def app(environ, start_response):
|
||||||
"""Simplest possible application object"""
|
"""Simplest possible application object"""
|
||||||
|
|
||||||
|
errors = environ['wsgi.errors']
|
||||||
|
pprint.pprint(('ENVIRON', environ), stream=errors)
|
||||||
|
|
||||||
data = b'Hello, World!\n'
|
data = b'Hello, World!\n'
|
||||||
status = '200 OK'
|
status = '200 OK'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user