Repository: incubator-eagle Updated Branches: refs/heads/master 929a21da7 -> adeaa0f9e
[MINOR] Health check optimize Author: wujinhu <wujinhu...@126.com> Closes #678 from wujinhu/healthCheckOptimize. Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/adeaa0f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/adeaa0f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/adeaa0f9 Branch: refs/heads/master Commit: adeaa0f9e1be4f8f017449c7155f52b072052ed7 Parents: 929a21d Author: wujinhu <wujinhu...@126.com> Authored: Wed Nov 23 22:11:33 2016 +0800 Committer: wujinhu <wujinhu...@126.com> Committed: Wed Nov 23 22:11:33 2016 +0800 ---------------------------------------------------------------------- .../app/service/impl/ApplicationHealthCheckEmailPublisher.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/adeaa0f9/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java ---------------------------------------------------------------------- diff --git a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java index f3d543a..c7d7e0f 100644 --- a/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java +++ b/eagle-core/eagle-app/eagle-app-base/src/main/java/org/apache/eagle/app/service/impl/ApplicationHealthCheckEmailPublisher.java @@ -51,6 +51,9 @@ public class ApplicationHealthCheckEmailPublisher implements ApplicationHealthCh @Override public void onUnHealthApplication(Map<String, HealthCheck.Result> results) { + if (results.size() == 0) { + return; + } Properties properties = parseMailClientConfig(); if (properties == null) { return;