Fix debug logging issues in pluginsBL 93/55393/2
authorIdan Amit <ia096e@intl.att.com>
Tue, 26 Jun 2018 12:32:32 +0000 (15:32 +0300)
committerMichael Lando <ml636r@att.com>
Tue, 26 Jun 2018 14:29:37 +0000 (14:29 +0000)
Added additional debug logs to the plugin connectivity test

Change-Id: I36255a1357d6e971122b0d6ff6b1fd759c6a2454
Issue-ID: SDC-1446
Signed-off-by: Idan Amit <ia096e@intl.att.com>
catalog-fe/src/main/java/org/openecomp/sdc/fe/impl/PluginStatusBL.java

index cdf965d..df68e19 100644 (file)
@@ -75,9 +75,10 @@ public class PluginStatusBL {
 
                try (CloseableHttpResponse response = this.client.execute(head)) {
                        result = response != null && response.getStatusLine().getStatusCode() == 200;
-                       log.debug("The plugin {} is online", plugin.getPluginId());
+                       log.debug("The plugin {} is {} with result {}",plugin.getPluginId(),( result ? "online" : "offline" ), result);
                } catch (IOException e) {
                        log.debug("The plugin {} is offline", plugin.getPluginId());
+                        log.debug("Exception:",e);
                }
 
                return result;