Skip to content

Commit 4f1e9f2

Browse files
russellbshreyankg
authored andcommitted
[Frontend] Fix log message to use http vs https (vllm-project#14774)
Signed-off-by: Russell Bryant <[email protected]>
1 parent ad3597b commit 4f1e9f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

vllm/entrypoints/openai/api_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,8 +955,10 @@ def _listen_addr(a: str) -> str:
955955
return '[' + a + ']'
956956
return a or "0.0.0.0"
957957

958-
logger.info("Starting vLLM API server on http://%s:%d",
959-
_listen_addr(sock_addr[0]), sock_addr[1])
958+
is_ssl = args.ssl_keyfile and args.ssl_certfile
959+
logger.info("Starting vLLM API server on http%s://%s:%d",
960+
"s" if is_ssl else "", _listen_addr(sock_addr[0]),
961+
sock_addr[1])
960962

961963
shutdown_task = await serve_http(
962964
app,

0 commit comments

Comments
 (0)