Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
ee499b02
Commit
ee499b02
authored
May 15, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.5.x'
parents
7f18b3d8
5e35cdcc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
AbstractHealthIndicator.java
...ramework/boot/actuate/health/AbstractHealthIndicator.java
+6
-0
No files found.
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/AbstractHealthIndicator.java
View file @
ee499b02
...
@@ -16,6 +16,9 @@
...
@@ -16,6 +16,9 @@
package
org
.
springframework
.
boot
.
actuate
.
health
;
package
org
.
springframework
.
boot
.
actuate
.
health
;
import
org.apache.commons.logging.Log
;
import
org.apache.commons.logging.LogFactory
;
import
org.springframework.boot.actuate.health.Health.Builder
;
import
org.springframework.boot.actuate.health.Health.Builder
;
/**
/**
...
@@ -31,6 +34,8 @@ import org.springframework.boot.actuate.health.Health.Builder;
...
@@ -31,6 +34,8 @@ import org.springframework.boot.actuate.health.Health.Builder;
*/
*/
public
abstract
class
AbstractHealthIndicator
implements
HealthIndicator
{
public
abstract
class
AbstractHealthIndicator
implements
HealthIndicator
{
private
final
Log
logger
=
LogFactory
.
getLog
(
getClass
());
@Override
@Override
public
final
Health
health
()
{
public
final
Health
health
()
{
Health
.
Builder
builder
=
new
Health
.
Builder
();
Health
.
Builder
builder
=
new
Health
.
Builder
();
...
@@ -38,6 +43,7 @@ public abstract class AbstractHealthIndicator implements HealthIndicator {
...
@@ -38,6 +43,7 @@ public abstract class AbstractHealthIndicator implements HealthIndicator {
doHealthCheck
(
builder
);
doHealthCheck
(
builder
);
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
this
.
logger
.
warn
(
"Health check failed"
,
ex
);
builder
.
down
(
ex
);
builder
.
down
(
ex
);
}
}
return
builder
.
build
();
return
builder
.
build
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment