Files
2015-04-11 22:50:11 +10:00

13 lines
279 B
Python

import uwsgi
uwsgi.log("I am uWSGI %s" % uwsgi.version)
def application(env, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
uwsgi.log(str(env))
if env['PATH_INFO'] == '/logme':
uwsgi.log_this_request()
return "log written"