mirror of https://github.com/CIRCL/lookyloo
new: Proper logging for website too.
parent
00370291ac
commit
3e3eebaf4a
|
@ -4,6 +4,7 @@ import calendar
|
||||||
import http
|
import http
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
import logging.config
|
||||||
import os
|
import os
|
||||||
import time
|
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)
|
load_user_from_request, src_request_ip, sri_load)
|
||||||
from .proxied import ReverseProxied
|
from .proxied import ReverseProxied
|
||||||
|
|
||||||
|
logging.config.dictConfig(get_config('logging'))
|
||||||
|
|
||||||
app: Flask = Flask(__name__)
|
app: Flask = Flask(__name__)
|
||||||
app.wsgi_app = ReverseProxied(app.wsgi_app) # type: ignore
|
app.wsgi_app = ReverseProxied(app.wsgi_app) # type: ignore
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue