File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .boot .actuate .health ;
1818
19+ import org .apache .commons .logging .Log ;
20+ import org .apache .commons .logging .LogFactory ;
21+
1922import org .springframework .boot .actuate .health .Health .Builder ;
2023
2124/**
3134 */
3235public abstract class AbstractHealthIndicator implements HealthIndicator {
3336
37+ private static final Log logger = LogFactory .getLog (AbstractHealthIndicator .class );
38+
3439 @ Override
3540 public final Health health () {
3641 Health .Builder builder = new Health .Builder ();
3742 try {
3843 doHealthCheck (builder );
3944 }
4045 catch (Exception ex ) {
46+ logger .warn (String .format (
47+ "%s failed: %s" ,
48+ this .getClass ().getSimpleName (),
49+ ex .getMessage ()));
4150 builder .down (ex );
4251 }
4352 return builder .build ();
You can’t perform that action at this time.
0 commit comments