From 20c1b9067dad579fb00f2c59dac796405b3d71ab Mon Sep 17 00:00:00 2001 From: Hektor Suhr Date: Sat, 23 Jan 2016 09:56:43 -0500 Subject: [PATCH] Update moulinrouge.py --- demo/moulinrouge.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/demo/moulinrouge.py b/demo/moulinrouge.py index 9221fa3..5dd6315 100755 --- a/demo/moulinrouge.py +++ b/demo/moulinrouge.py @@ -22,16 +22,16 @@ import logging app = create_app() try: - # from log_colorizer import make_colored_stream_handler - # handler = make_colored_stream_handler() - # app.logger.handlers = [] - # app.logger.addHandler(handler) + from log_colorizer import make_colored_stream_handler + handler = make_colored_stream_handler() + app.logger.handlers = [] + app.logger.addHandler(handler) import werkzeug werkzeug._internal._log('debug', '<-- I am with stupid') logging.getLogger('werkzeug').handlers = [] - # logging.getLogger('werkzeug').addHandler(handler) + logging.getLogger('werkzeug').addHandler(handler) - # handler.setLevel(logging.DEBUG) + handler.setLevel(logging.DEBUG) app.logger.setLevel(logging.DEBUG) logging.getLogger('werkzeug').setLevel(logging.DEBUG) except: @@ -58,4 +58,4 @@ else: add_w_builtin() app.wsgi_app = WdbMiddleware(app.wsgi_app, start_disabled=True) -app.run(debug=True, threaded=True) +app.run(debug=True, threaded=True, host='0.0.0.0', port=21112)