We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--port=0
1 parent bb1b50f commit 9b0a8f6Copy full SHA for 9b0a8f6
uvicorn/config.py
@@ -571,7 +571,7 @@ def bind_socket(self) -> socket.socket:
571
+ " (Press CTRL+C to quit)"
572
)
573
protocol_name = "https" if self.is_ssl else "http"
574
- logger_args = [protocol_name, self.host, self.port]
+ logger_args = [protocol_name, self.host, sock.getsockname()[1]]
575
logger.info(message, *logger_args, extra={"color_message": color_message})
576
sock.set_inheritable(True)
577
return sock
0 commit comments