Skip to content

Commit 7cbd57b

Browse files
committed
Log FailureAnalyzer errors at trace level
Update `FailureAnalyzers` to log errors at `trace` rather than `debug`. This should reduce noise when an analyzer unexpectedly fails and the user is running with `--debug`. Fixes gh-24630
1 parent a24ec9d commit 7cbd57b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/diagnostics/FailureAnalyzers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -114,7 +114,7 @@ private FailureAnalysis analyze(Throwable failure, List<FailureAnalyzer> analyze
114114
}
115115
}
116116
catch (Throwable ex) {
117-
logger.debug(LogMessage.format("FailureAnalyzer %s failed", analyzer), ex);
117+
logger.trace(LogMessage.format("FailureAnalyzer %s failed", analyzer), ex);
118118
}
119119
}
120120
return null;

0 commit comments

Comments
 (0)