Log allocated port when Livereload server is using an ephemeral port

Closes gh-31983
pull/32234/head
Andy Wilkinson 2 years ago
parent 1614941ece
commit 7c0ccdf78c

@ -52,10 +52,11 @@ public class OptionalLiveReloadServer implements InitializingBean {
void startServer() {
if (this.server != null) {
try {
int port = this.server.getPort();
if (!this.server.isStarted()) {
this.server.start();
port = this.server.start();
}
logger.info(LogMessage.format("LiveReload server is running on port %s", this.server.getPort()));
logger.info(LogMessage.format("LiveReload server is running on port %s", port));
}
catch (Exception ex) {
logger.warn("Unable to start LiveReload server");

Loading…
Cancel
Save