Search in sources :

Example 1 with LoggingFailureAnalysisReporter

use of org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter in project spring-boot by spring-projects.

the class NotConstructorBoundInjectionFailureAnalyzerTests method analyzeFailure.

private FailureAnalysis analyzeFailure(Exception failure) {
    assertThat(failure).isNotNull();
    FailureAnalysis analysis = this.analyzer.analyze(failure);
    if (analysis != null) {
        new LoggingFailureAnalysisReporter().report(analysis);
    }
    return analysis;
}
Also used : FailureAnalysis(org.springframework.boot.diagnostics.FailureAnalysis) LoggingFailureAnalysisReporter(org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter)

Aggregations

FailureAnalysis (org.springframework.boot.diagnostics.FailureAnalysis)1 LoggingFailureAnalysisReporter (org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter)1