Skip to content

Commit 0eab3e0

Browse files
committed
Drop printed link to reference documentation
Tweak the fix from 50c68a4 to no longer print a link the reference documentation. See gh-6593
1 parent 2c621f4 commit 0eab3e0

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/AutoConfigurationReportLoggingInitializer.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.apache.commons.logging.Log;
2020
import org.apache.commons.logging.LogFactory;
2121

22-
import org.springframework.boot.SpringBootVersion;
2322
import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport;
2423
import org.springframework.boot.context.event.ApplicationFailedEvent;
2524
import org.springframework.boot.logging.LogLevel;
@@ -99,23 +98,17 @@ public void logAutoConfigurationReport(boolean isCrashReport) {
9998
if (!this.report.getConditionAndOutcomesBySource().isEmpty()) {
10099
if (isCrashReport && this.logger.isInfoEnabled()
101100
&& !this.logger.isDebugEnabled()) {
102-
this.logger.info(String.format("%n%nError starting ApplicationContext. "
103-
+ "To display the auto-configuration report re-run your application with debug enabled,%n"
104-
+ "see also %s%n%n", createStartupFailureDocUrl()));
101+
this.logger.info(String
102+
.format("%n%nError starting ApplicationContext. To display the "
103+
+ "auto-configuration report re-run your application with "
104+
+ "'debug' enabled."));
105105
}
106106
if (this.logger.isDebugEnabled()) {
107107
this.logger.debug(new ConditionEvaluationReportMessage(this.report));
108108
}
109109
}
110110
}
111111

112-
private String createStartupFailureDocUrl() {
113-
String bootVersion = SpringBootVersion.getVersion();
114-
String version = bootVersion != null ? bootVersion : "current";
115-
return String.format(
116-
"http://docs.spring.io/spring-boot/docs/%s/reference/html/boot-features-spring-application.html#boot-features-startup-failure", version);
117-
}
118-
119112
private class AutoConfigurationReportListener implements GenericApplicationListener {
120113

121114
@Override

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ such as the user that launched the application.
5050

5151
[boot-features-startup-failure]
5252
=== Startup failure
53-
5453
If your application fails to start, registered `FailureAnalyzers` get a chance to provide
5554
a dedicated error message and a concrete action to fix the problem. For instance if you
5655
start a web application on port `8080` and that port is already in use, you should see

0 commit comments

Comments
 (0)