mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Only show uvicorn debug logs at higher verbosity levels
Don't automatically show the uvicorn logs when in_debug_mode, only show on at least verbosity = 2, i.e when start khoj with -vv flag
This commit is contained in:
@@ -166,7 +166,7 @@ def start_server(app, host=None, port=None, socket=None):
|
|||||||
app,
|
app,
|
||||||
host=host,
|
host=host,
|
||||||
port=port,
|
port=port,
|
||||||
log_level="debug" if in_debug_mode() else "info",
|
log_level="debug" if state.verbose > 1 else "info",
|
||||||
use_colors=True,
|
use_colors=True,
|
||||||
log_config=None,
|
log_config=None,
|
||||||
timeout_keep_alive=60,
|
timeout_keep_alive=60,
|
||||||
|
|||||||
Reference in New Issue
Block a user