summaryrefslogtreecommitdiff
path: root/jimbrella
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-10-31 14:47:14 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-10-31 14:47:14 +0800
commitfb6b5b74df451f943190f6c757e6f9de04cce7ab (patch)
treea714cd0006c6a866ccc11bc6380a1f701358a154 /jimbrella
parent6392802d696a228250cce7f9ddeaca8f6fb92b29 (diff)
jimbrella.web keeps log
Diffstat (limited to 'jimbrella')
-rw-r--r--jimbrella/web.py4
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)