List of usage examples for org.springframework.boot.web.embedded.undertow UndertowWebServer logger
Log logger
To view the source code for org.springframework.boot.web.embedded.undertow UndertowWebServer logger.
Click Source Link
From source file:org.springframework.boot.web.embedded.undertow.UndertowWebServer.java
@Override public void start() throws WebServerException { synchronized (this.monitor) { if (this.started) { return; }/*from ww w . j av a 2 s .c o m*/ try { if (!this.autoStart) { return; } if (this.undertow == null) { this.undertow = this.builder.build(); } this.undertow.start(); this.started = true; UndertowWebServer.logger.info("Undertow started on port(s) " + getPortsDescription()); } catch (Exception ex) { try { if (findBindException(ex) != null) { List<UndertowWebServer.Port> failedPorts = getConfiguredPorts(); List<UndertowWebServer.Port> actualPorts = getActualPorts(); failedPorts.removeAll(actualPorts); if (failedPorts.size() == 1) { throw new PortInUseException(failedPorts.iterator().next().getNumber()); } } throw new WebServerException("Unable to start embedded Undertow", ex); } finally { stopSilently(); } } } }