mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '2.7.x'
Closes gh-31985
This commit is contained in:
commit
a6271927b2
@ -52,10 +52,11 @@ public class OptionalLiveReloadServer implements InitializingBean {
|
|||||||
void startServer() {
|
void startServer() {
|
||||||
if (this.server != null) {
|
if (this.server != null) {
|
||||||
try {
|
try {
|
||||||
|
int port = this.server.getPort();
|
||||||
if (!this.server.isStarted()) {
|
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) {
|
catch (Exception ex) {
|
||||||
logger.warn("Unable to start LiveReload server");
|
logger.warn("Unable to start LiveReload server");
|
||||||
|
Loading…
Reference in New Issue
Block a user