|
19 | 19 | import org.apache.commons.logging.Log;
|
20 | 20 | import org.apache.commons.logging.LogFactory;
|
21 | 21 |
|
22 |
| -import org.springframework.boot.SpringBootVersion; |
23 | 22 | import org.springframework.boot.autoconfigure.condition.ConditionEvaluationReport;
|
24 | 23 | import org.springframework.boot.context.event.ApplicationFailedEvent;
|
25 | 24 | import org.springframework.boot.logging.LogLevel;
|
@@ -99,23 +98,17 @@ public void logAutoConfigurationReport(boolean isCrashReport) {
|
99 | 98 | if (!this.report.getConditionAndOutcomesBySource().isEmpty()) {
|
100 | 99 | if (isCrashReport && this.logger.isInfoEnabled()
|
101 | 100 | && !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.")); |
105 | 105 | }
|
106 | 106 | if (this.logger.isDebugEnabled()) {
|
107 | 107 | this.logger.debug(new ConditionEvaluationReportMessage(this.report));
|
108 | 108 | }
|
109 | 109 | }
|
110 | 110 | }
|
111 | 111 |
|
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 |
| - |
119 | 112 | private class AutoConfigurationReportListener implements GenericApplicationListener {
|
120 | 113 |
|
121 | 114 | @Override
|
|
0 commit comments