File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health Expand file tree Collapse file tree 1 file changed +6
-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 ("%s failed" , this .getClass ().getSimpleName ()), ex );
4147 builder .down (ex );
4248 }
4349 return builder .build ();
You can’t perform that action at this time.
0 commit comments