mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 19:31:00 +00:00
[fix] do not reload engines twice if started with debug mode
This commit is contained in:
parent
a605377c40
commit
68cbf0448f
1 changed files with 3 additions and 1 deletions
|
@ -765,7 +765,9 @@ def page_not_found(e):
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
if not searx_debug or os.environ.get("WERKZEUG_RUN_MAIN") == "true":
|
||||||
initialize_engines(settings['engines'])
|
initialize_engines(settings['engines'])
|
||||||
|
|
||||||
app.run(
|
app.run(
|
||||||
debug=searx_debug,
|
debug=searx_debug,
|
||||||
use_debugger=searx_debug,
|
use_debugger=searx_debug,
|
||||||
|
|
Loading…
Reference in a new issue