diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/__init__.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/app/__init__.py b/app/__init__.py index 44115c7..d566da7 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -18,17 +18,6 @@ def create_app(config=None): def configure_app(app): app.config.from_pyfile('../config.cfg') - # http://flask.pocoo.org/docs/0.10/errorhandling/ - if not app.debug: - import logging - from logging.handlers import RotatingFileHandler - file_handler = RotatingFileHandler(app.config['LOG_FILE_PATH']) - file_handler.setLevel(logging.WARNING) - file_handler.setFormatter(logging.Formatter( - '%(asctime)s %(levelname)s: %(message)s' - '[in %(pathname)s:%(lineno)d]')) - app.logger.addHandler(file_handler) - def configure_error_handlers(app): @app.route('/403') |