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 /vespaclient-java/src/main/java/com | |
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.
Diffstat (limited to 'vespaclient-java/src/main/java/com')
-rw-r--r-- | vespaclient-java/src/main/java/com/yahoo/vespaget/Main.java | 5 | ||||
-rw-r--r-- | vespaclient-java/src/main/java/com/yahoo/vespastat/Main.java | 4 |
2 files changed, 8 insertions, 1 deletions
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); |