diff options
author | Martin Polden <mpolden@mpolden.no> | 2019-09-16 13:31:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-16 13:31:52 +0200 |
commit | 1a165fccda4c6b7982d814aa5699df2610124f31 (patch) | |
tree | 2029af1806818e34f08adeabd3c9af918e068f05 /controller-server/src | |
parent | bea4877b70832bcf212c8f74912dde173743d147 (diff) | |
parent | 9df03b47ab9f95421c578d400fd85686a6dfb0f0 (diff) |
Merge pull request #10658 from vespa-engine/mpolden/reduce-log-noise
Reduce log noise from DeploymentMetricsMaintainer
Diffstat (limited to 'controller-server/src')
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java index 7b925ab7691..feee2edf896 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/DeploymentMetricsMaintainer.java @@ -2,11 +2,13 @@ package com.yahoo.vespa.hosted.controller.maintenance; import com.yahoo.config.provision.SystemName; +import com.yahoo.log.LogLevel; import com.yahoo.vespa.hosted.controller.Application; import com.yahoo.vespa.hosted.controller.ApplicationController; import com.yahoo.vespa.hosted.controller.Controller; import com.yahoo.vespa.hosted.controller.application.Deployment; import com.yahoo.vespa.hosted.controller.application.DeploymentMetrics; +import com.yahoo.yolean.Exceptions; import java.time.Duration; import java.util.List; @@ -14,7 +16,6 @@ import java.util.concurrent.ForkJoinPool; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; -import java.util.logging.Level; import java.util.logging.Logger; /** @@ -80,11 +81,12 @@ public class DeploymentMetricsMaintainer extends Maintainer { try { pool.awaitTermination(30, TimeUnit.MINUTES); if (lastException.get() != null) { - log.log(Level.INFO, String.format("Failed to query metrics service for %d/%d applications. Retrying in %s. Last error: ", - failures.get(), - applicationList.size(), - maintenanceInterval()), - lastException.get()); + log.log(LogLevel.WARNING, + String.format("Failed to gather metrics for %d/%d applications. Retrying in %s. Last error: %s", + failures.get(), + applicationList.size(), + maintenanceInterval(), + Exceptions.toMessageString(lastException.get()))); } } catch (InterruptedException e) { throw new RuntimeException(e); |