Skip to content

Commit

Permalink
[Frontend] Add --log-level option to api server (vllm-project#4377)
Browse files Browse the repository at this point in the history
  • Loading branch information
normster authored Apr 26, 2024
1 parent a74dee9 commit 2f30e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/entrypoints/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ async def stream_results() -> AsyncGenerator[bytes, None]:
type=str,
default=None,
help="FastAPI root_path when app is behind a path based routing proxy")
parser.add_argument("--log-level", type=str, default="debug")
parser = AsyncEngineArgs.add_cli_args(parser)
args = parser.parse_args()
engine_args = AsyncEngineArgs.from_cli_args(args)
Expand All @@ -110,7 +111,7 @@ async def stream_results() -> AsyncGenerator[bytes, None]:
uvicorn.run(app,
host=args.host,
port=args.port,
log_level="debug",
log_level=args.log_level,
timeout_keep_alive=TIMEOUT_KEEP_ALIVE,
ssl_keyfile=args.ssl_keyfile,
ssl_certfile=args.ssl_certfile,
Expand Down

0 comments on commit 2f30e7c

Please sign in to comment.