summaryrefslogtreecommitdiffstats
path: root/metrics-proxy
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-09-17 15:08:58 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-09-17 15:08:58 +0000
commit26bf7a15e735a9b1d4cf9fa8b7219de6d4131aaa (patch)
treea8a7b3cfa14354489ddec049969375d6850cd9fd /metrics-proxy
parent20b3029c136c45ddd83cacf819f98b7b87f98791 (diff)
Must concatenate as message is not a Throwable.
Diffstat (limited to 'metrics-proxy')
-rw-r--r--metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java
index f8f352c1b04..87a0d7d8ad9 100644
--- a/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java
+++ b/metrics-proxy/src/main/java/ai/vespa/metricsproxy/http/application/ApplicationMetricsRetriever.java
@@ -164,7 +164,7 @@ public class ApplicationMetricsRetriever extends AbstractComponent implements Ru
Throwable cause = e.getCause();
if ( e instanceof ExecutionException && (cause != null) && (cause instanceof HttpHostConnectException)) {
// Remove once we have some track time.
- log.log(Level.WARNING, "Failed retrieving metrics for '" + entry.getKey() + "' : ", e.getMessage());
+ log.log(Level.WARNING, "Failed retrieving metrics for '" + entry.getKey() + "' : " + cause.getMessage());
} else {
log.log(Level.WARNING, "Failed retrieving metrics for '" + entry.getKey() + "' : ", e);
}