From f72b0421b20ff6a3bead252caa8b5b7194e976bd Mon Sep 17 00:00:00 2001 From: Nassim Boutekedjiret Date: Thu, 17 Oct 2024 18:50:36 +0200 Subject: [PATCH] Issue #456: Fix missing dom4j dependency in the WBEM extension * Corrected exception message. * Updated shade plugin to include the missing dom4j dependency. --- metricshub-wbem-extension/pom.xml | 1 + .../metricshub/extension/wbem/WbemRequestExecutor.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/metricshub-wbem-extension/pom.xml b/metricshub-wbem-extension/pom.xml index 943b6f297..ff38748c1 100644 --- a/metricshub-wbem-extension/pom.xml +++ b/metricshub-wbem-extension/pom.xml @@ -179,6 +179,7 @@ org.sentrysoftware:wbem org.sentrysoftware:vcenter com.vmware:vijava + dom4j:dom4j org.sentrysoftware:metricshub-wbem-extension diff --git a/metricshub-wbem-extension/src/main/java/org/sentrysoftware/metricshub/extension/wbem/WbemRequestExecutor.java b/metricshub-wbem-extension/src/main/java/org/sentrysoftware/metricshub/extension/wbem/WbemRequestExecutor.java index 51cd0e808..cbf453ab1 100644 --- a/metricshub-wbem-extension/src/main/java/org/sentrysoftware/metricshub/extension/wbem/WbemRequestExecutor.java +++ b/metricshub-wbem-extension/src/main/java/org/sentrysoftware/metricshub/extension/wbem/WbemRequestExecutor.java @@ -186,7 +186,8 @@ private String refreshVCenterTicket( if (e instanceof InterruptedException) { Thread.currentThread().interrupt(); } - log.error("Hostname {} - Vcenter ticket refresh query failed. Exception: {}", e); + log.error("Hostname {} - vCenter ticket refresh query failed. Error message: {}", hostname, e.getMessage()); + log.debug("Hostname {} - vCenter ticket refresh query failed.", hostname, e); throw new ClientException("vCenter refresh ticket query failed on " + hostname + ".", e); } }