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:
Debanjum Singh Solanky
2024-04-18 01:29:30 +05:30
parent c6d668bacf
commit 75c9ebbc54

View File

@@ -166,7 +166,7 @@ def start_server(app, host=None, port=None, socket=None):
app,
host=host,
port=port,
log_level="debug" if in_debug_mode() else "info",
log_level="debug" if state.verbose > 1 else "info",
use_colors=True,
log_config=None,
timeout_keep_alive=60,