diff options
Diffstat (limited to 'jimbrella/web.py')
-rw-r--r-- | jimbrella/web.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jimbrella/web.py b/jimbrella/web.py index 9db37ef..dda2d9f 100644 --- a/jimbrella/web.py +++ b/jimbrella/web.py @@ -1,8 +1,12 @@ +import logging from flask import Flask from .admin import bp as admin_bp from .auth import bp as auth_bp from .config import * +# this logger is shared across modules +logging.basicConfig(filename=LOG_PATH, encoding="utf-8", level=logging.DEBUG) + app = Flask("jimbrella") app.secret_key = FLASK_SECRET_KEY app.register_blueprint(admin_bp) |