mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +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,
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user