From fb6b5b74df451f943190f6c757e6f9de04cce7ab Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sun, 31 Oct 2021 14:47:14 +0800 Subject: jimbrella.web keeps log --- jimbrella/web.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'jimbrella/web.py') 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) -- cgit v1.2.3