mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 01:39:24 +02:00
[enh] using the logger
This commit is contained in:
parent
425a576f28
commit
299a80a1eb
4 changed files with 22 additions and 8 deletions
|
@ -47,8 +47,11 @@ from searx.https_rewrite import https_url_rewrite
|
|||
from searx.search import Search
|
||||
from searx.query import Query
|
||||
from searx.autocomplete import backends as autocomplete_backends
|
||||
from searx import logger
|
||||
|
||||
|
||||
logger = logger.getChild('webapp')
|
||||
|
||||
static_path, templates_path, themes =\
|
||||
get_themes(settings['themes_path']
|
||||
if settings.get('themes_path')
|
||||
|
@ -68,6 +71,8 @@ app = Flask(
|
|||
|
||||
app.secret_key = settings['server']['secret_key']
|
||||
|
||||
app.logger.addHandler(logger)
|
||||
|
||||
babel = Babel(app)
|
||||
|
||||
global_favicons = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue