new: Proper logging for website too.

pull/557/head
Raphaël Vinot 2022-11-23 16:24:51 +01:00
parent 00370291ac
commit 3e3eebaf4a
2 changed files with 3 additions and 0 deletions

0
website/logs/.keepdir Normal file
View File

View File

@ -4,6 +4,7 @@ import calendar
import http
import json
import logging
import logging.config
import os
import time
@ -37,6 +38,8 @@ from .helpers import (User, build_users_table, get_secret_key,
load_user_from_request, src_request_ip, sri_load)
from .proxied import ReverseProxied
logging.config.dictConfig(get_config('logging'))
app: Flask = Flask(__name__)
app.wsgi_app = ReverseProxied(app.wsgi_app) # type: ignore