diff --git a/app/app.py b/app/app.py index c0ccf32..484265a 100644 --- a/app/app.py +++ b/app/app.py @@ -30,7 +30,8 @@ class PrefixFix(object): if not app.debug: app.wsgi_app = PrefixFix(app.wsgi_app, '/james') timedFileHandler = TimedRotatingFileHandler(app.config['LOGFILE'], when='midnight', backupCount=100) - timedFileHandler.setLevel(logging.INFO) + timedFileHandler.setLevel(logging.DEBUG) logger = logging.getLogger('werkzeug') + logger.setLevel(logging.DEBUG) logger.addHandler(timedFileHandler) app.logger.addHandler(timedFileHandler) diff --git a/app/james.py b/app/james.py index 9eee414..f8002bc 100644 --- a/app/james.py +++ b/app/james.py @@ -10,7 +10,4 @@ from utils import * from views import * if __name__ == '__main__': - if app.debug: - app.run(host='0.0.0.0', port=80) - else: - app.run() + app.run()