diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-08-02 18:16:28 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-08-02 18:16:28 -0500 |
commit | bee1dd6744c9037d96f03fa439b7b13c71df0a8b (patch) | |
tree | 07ea436bb2729325ba09d97b56025a22e1621e4a /feature-healthcheck | |
parent | f1635fe8e027e9230066b04f5768bb9a5ba0124b (diff) |
[POLICY-114] fix some sonar criticals
Change-Id: Ic79b3d81ac814948ce3a956fe4c32b8a9b5c0009
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'feature-healthcheck')
-rw-r--r-- | feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java index 0e4ed792..5cbcf555 100644 --- a/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java +++ b/feature-healthcheck/src/main/java/org/onap/policy/drools/healthcheck/HealthCheck.java @@ -172,9 +172,11 @@ class HealthCheckMonitor implements HealthCheck { try { report.message = HttpClient.getBody(response, String.class); } catch (Exception e) { - logger.warn("{}: cannot get body from http-client {}", this, client, e); + logger.info("{}: cannot get body from http-client {}", this, client, e); } } catch (Exception e) { + logger.warn("{}: cannot contact http-client {}", this, client, e); + report.healthy = false; reports.healthy = false; } @@ -202,6 +204,7 @@ class HealthCheckMonitor implements HealthCheck { } } } catch (Exception e) { + logger.warn("{}: cannot start {}", this, e); return false; } |