From 698e260746e5610837a135fc15c1b71c17dc34f6 Mon Sep 17 00:00:00 2001 From: kske Date: Fri, 17 Jul 2020 00:29:48 +0200 Subject: [PATCH] Turn logging off by default (ClientConfig) Logging is still enabled through the client.properties however, where console logging is set to FINER. --- client/src/main/java/envoy/client/data/ClientConfig.java | 4 ++-- client/src/main/resources/client.properties | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/main/java/envoy/client/data/ClientConfig.java b/client/src/main/java/envoy/client/data/ClientConfig.java index fbbdc94..3a18f08 100644 --- a/client/src/main/java/envoy/client/data/ClientConfig.java +++ b/client/src/main/java/envoy/client/data/ClientConfig.java @@ -38,8 +38,8 @@ public class ClientConfig extends Config { items.put("localDB", new ConfigItem<>("localDB", "db", File::new, new File("localDB"), true)); items.put("ignoreLocalDB", new ConfigItem<>("ignoreLocalDB", "nodb", Boolean::parseBoolean, false, false)); items.put("homeDirectory", new ConfigItem<>("homeDirectory", "h", File::new, new File(System.getProperty("user.home"), ".envoy"), true)); - items.put("fileLevelBarrier", new ConfigItem<>("fileLevelBarrier", "fb", Level::parse, Level.CONFIG, true)); - items.put("consoleLevelBarrier", new ConfigItem<>("consoleLevelBarrier", "cb", Level::parse, Level.FINEST, true)); + items.put("fileLevelBarrier", new ConfigItem<>("fileLevelBarrier", "fb", Level::parse, Level.OFF, true)); + items.put("consoleLevelBarrier", new ConfigItem<>("consoleLevelBarrier", "cb", Level::parse, Level.OFF, true)); items.put("user", new ConfigItem<>("user", "u", identity())); items.put("password", new ConfigItem<>("password", "pw", identity())); } diff --git a/client/src/main/resources/client.properties b/client/src/main/resources/client.properties index 609d61a..25f1ffd 100644 --- a/client/src/main/resources/client.properties +++ b/client/src/main/resources/client.properties @@ -1,3 +1,4 @@ server=localhost port=8080 -localDB=.\\localDB +localDB=localDB +consoleLevelBarrier=FINER