Commit 0eab3e0c authored by Phillip Webb's avatar Phillip Webb

Drop printed link to reference documentation

Tweak the fix from 50c68a49 to no longer print a link the reference
documentation.

See gh-6593
parent 2c621f40
...@@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.logging; ...@@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.logging;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport; import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport;
import org.springframework.boot.context.event.ApplicationFailedEvent; import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.boot.logging.LogLevel; import org.springframework.boot.logging.LogLevel;
...@@ -99,9 +98,10 @@ public class AutoConfigurationReportLoggingInitializer ...@@ -99,9 +98,10 @@ public class AutoConfigurationReportLoggingInitializer
if (!this.report.getConditionAndOutcomesBySource().isEmpty()) { if (!this.report.getConditionAndOutcomesBySource().isEmpty()) {
if (isCrashReport && this.logger.isInfoEnabled() if (isCrashReport && this.logger.isInfoEnabled()
&& !this.logger.isDebugEnabled()) { && !this.logger.isDebugEnabled()) {
this.logger.info(String.format("%n%nError starting ApplicationContext. " this.logger.info(String
+ "To display the auto-configuration report re-run your application with debug enabled,%n" .format("%n%nError starting ApplicationContext. To display the "
+ "see also %s%n%n", createStartupFailureDocUrl())); + "auto-configuration report re-run your application with "
+ "'debug' enabled."));
} }
if (this.logger.isDebugEnabled()) { if (this.logger.isDebugEnabled()) {
this.logger.debug(new ConditionEvaluationReportMessage(this.report)); this.logger.debug(new ConditionEvaluationReportMessage(this.report));
...@@ -109,13 +109,6 @@ public class AutoConfigurationReportLoggingInitializer ...@@ -109,13 +109,6 @@ public class AutoConfigurationReportLoggingInitializer
} }
} }
private String createStartupFailureDocUrl() {
String bootVersion = SpringBootVersion.getVersion();
String version = bootVersion != null ? bootVersion : "current";
return String.format(
"http://docs.spring.io/spring-boot/docs/%s/reference/html/boot-features-spring-application.html#boot-features-startup-failure", version);
}
private class AutoConfigurationReportListener implements GenericApplicationListener { private class AutoConfigurationReportListener implements GenericApplicationListener {
@Override @Override
......
...@@ -50,7 +50,6 @@ such as the user that launched the application. ...@@ -50,7 +50,6 @@ such as the user that launched the application.
[boot-features-startup-failure] [boot-features-startup-failure]
=== Startup failure === Startup failure
If your application fails to start, registered `FailureAnalyzers` get a chance to provide If your application fails to start, registered `FailureAnalyzers` get a chance to provide
a dedicated error message and a concrete action to fix the problem. For instance if you a dedicated error message and a concrete action to fix the problem. For instance if you
start a web application on port `8080` and that port is already in use, you should see start a web application on port `8080` and that port is already in use, you should see
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment