from flask import Flask
app = Flask(__name__)
import logging
log = logging.getLogger('werkzeug')
log.setLevel(logging.ERROR)

@app.route('/')
def hello():
    return 'Hello World!'
if __name__ == '__main__':
    app.run()
Disable console messages in Flask server