Drop printed link to reference documentation

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

See gh-6593
This commit is contained in:
Phillip Webb 2016-09-16 17:52:25 -07:00
parent 2c621f4094
commit 0eab3e0c5a
2 changed files with 4 additions and 12 deletions

View File

@ -19,7 +19,6 @@ package org.springframework.boot.autoconfigure.logging;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport;
import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.boot.logging.LogLevel;
@ -99,9 +98,10 @@ public class AutoConfigurationReportLoggingInitializer
if (!this.report.getConditionAndOutcomesBySource().isEmpty()) {
if (isCrashReport && this.logger.isInfoEnabled()
&& !this.logger.isDebugEnabled()) {
this.logger.info(String.format("%n%nError starting ApplicationContext. "
+ "To display the auto-configuration report re-run your application with debug enabled,%n"
+ "see also %s%n%n", createStartupFailureDocUrl()));
this.logger.info(String
.format("%n%nError starting ApplicationContext. To display the "
+ "auto-configuration report re-run your application with "
+ "'debug' enabled."));
}
if (this.logger.isDebugEnabled()) {
this.logger.debug(new ConditionEvaluationReportMessage(this.report));
@ -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 {
@Override

View File

@ -50,7 +50,6 @@ such as the user that launched the application.
[boot-features-startup-failure]
=== Startup failure
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
start a web application on port `8080` and that port is already in use, you should see