mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-16 07:15:01 +08:00
[Misc]fixed disable these http request logs (#14754)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
parent
34868b106a
commit
ae65f3e237
@ -1036,6 +1036,9 @@ async def run_server(args, **uvicorn_kwargs) -> None:
|
||||
host=args.host,
|
||||
port=args.port,
|
||||
log_level=args.uvicorn_log_level,
|
||||
# NOTE: When the 'disable_uvicorn_access_log' value is True,
|
||||
# no access log will be output.
|
||||
access_log=not args.disable_uvicorn_access_log,
|
||||
timeout_keep_alive=TIMEOUT_KEEP_ALIVE,
|
||||
ssl_keyfile=args.ssl_keyfile,
|
||||
ssl_certfile=args.ssl_certfile,
|
||||
|
||||
@ -89,6 +89,9 @@ def make_arg_parser(parser: FlexibleArgumentParser) -> FlexibleArgumentParser:
|
||||
default="info",
|
||||
choices=['debug', 'info', 'warning', 'error', 'critical', 'trace'],
|
||||
help="Log level for uvicorn.")
|
||||
parser.add_argument("--disable-uvicorn-access-log",
|
||||
action="store_true",
|
||||
help="Disable uvicorn access log.")
|
||||
parser.add_argument("--allow-credentials",
|
||||
action="store_true",
|
||||
help="Allow credentials.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user