from flask import Flask
application = Flask(__name__)
application.config['PROPAGATE_EXCEPTIONS'] = True

@application.route('/')
def hello_world():
    return 'Hello World!'
How to collect error message from stderr using a daemonized uwsgi?