diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-04-21 07:45:22 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-04-21 07:45:22 +0000 |
commit | 5d220c6f8500dc1f3300a2849681f40c41bb6946 (patch) | |
tree | fa9522560784896b83398e6a3ced4afbda0db75f | |
parent | fe1dfc345aa85b593ba536fa2607594751bb8d51 (diff) |
turn up the logging level
* these tools are also in the category where users
will consider any INFO level message noise.
Since they don't use the vespa LogSetup, just
increase the threshold programmatically.
3 files changed, 11 insertions, 1 deletions
diff --git a/vespa_feed_perf/src/main/java/com/yahoo/vespa/feed/perf/SimpleFeeder.java b/vespa_feed_perf/src/main/java/com/yahoo/vespa/feed/perf/SimpleFeeder.java index aac7ab750bd..3ee5f1df37e 100644 --- a/vespa_feed_perf/src/main/java/com/yahoo/vespa/feed/perf/SimpleFeeder.java +++ b/vespa_feed_perf/src/main/java/com/yahoo/vespa/feed/perf/SimpleFeeder.java @@ -54,6 +54,8 @@ import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicReference; +import java.util.logging.Level; +import java.util.logging.Logger; /** * @author Simon Thoresen Hult @@ -118,6 +120,7 @@ public class SimpleFeeder implements ReplyHandler { public static void main(String[] args) throws Throwable { + Logger.getLogger("").setLevel(Level.WARNING); new SimpleFeeder(new FeederParams().parseArgs(args)).run().close(); } diff --git a/vespaclient-java/src/main/java/com/yahoo/vespaget/Main.java b/vespaclient-java/src/main/java/com/yahoo/vespaget/Main.java index 6b3938f9cf8..da688c80252 100644 --- a/vespaclient-java/src/main/java/com/yahoo/vespaget/Main.java +++ b/vespaclient-java/src/main/java/com/yahoo/vespaget/Main.java @@ -1,10 +1,12 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespaget; - import com.yahoo.documentapi.messagebus.loadtypes.LoadTypeSet; import com.yahoo.vespaclient.ClusterList; +import java.util.logging.Level; +import java.util.logging.Logger; + /** * The vespa-get tool retrieves documents from a Vespa Document Storage cluster, and prints them to stdout as XML. * @@ -14,6 +16,7 @@ public class Main { public static void main(String[] args) { try { + Logger.getLogger("").setLevel(Level.WARNING); CommandLineOptions options = new CommandLineOptions(); ClientParameters params = options.parseCommandLineArguments(args); diff --git a/vespaclient-java/src/main/java/com/yahoo/vespastat/Main.java b/vespaclient-java/src/main/java/com/yahoo/vespastat/Main.java index d3f05e18841..c7698a81667 100644 --- a/vespaclient-java/src/main/java/com/yahoo/vespastat/Main.java +++ b/vespaclient-java/src/main/java/com/yahoo/vespastat/Main.java @@ -1,6 +1,9 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespastat; +import java.util.logging.Level; +import java.util.logging.Logger; + /** * Main application class * @@ -12,6 +15,7 @@ public class Main { } public static void main(String[] args) { + Logger.getLogger("").setLevel(Level.WARNING); CommandLineOptions options = new CommandLineOptions(); try { ClientParameters params = options.parseCommandLineArguments(args); |