From b7b2e1a69474667b160fb7e85ff0aa29642c25b0 Mon Sep 17 00:00:00 2001 From: amandel Date: Tue, 29 Oct 2024 09:59:14 +0100 Subject: [PATCH] Reduce loglevel "CONFIG" for config data Save HDD space and CPU time. Increase loglevel to config if you need the data. --- src/main/java/com/tsystems/sbs/LogFileFilterConfig.java | 2 +- src/main/java/com/tsystems/sbs/LogFileFilterOutputStream.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/tsystems/sbs/LogFileFilterConfig.java b/src/main/java/com/tsystems/sbs/LogFileFilterConfig.java index 707bc99..6e487e0 100644 --- a/src/main/java/com/tsystems/sbs/LogFileFilterConfig.java +++ b/src/main/java/com/tsystems/sbs/LogFileFilterConfig.java @@ -32,7 +32,7 @@ public static LogFileFilterConfig get() { LOGGER.log(Level.SEVERE, "Config not found! " + e); throw e; } - LOGGER.log(Level.INFO, "Found config."); + LOGGER.log(Level.CONFIG, "Found config."); return config; } diff --git a/src/main/java/com/tsystems/sbs/LogFileFilterOutputStream.java b/src/main/java/com/tsystems/sbs/LogFileFilterOutputStream.java index 012c5cc..0d7d103 100644 --- a/src/main/java/com/tsystems/sbs/LogFileFilterOutputStream.java +++ b/src/main/java/com/tsystems/sbs/LogFileFilterOutputStream.java @@ -70,7 +70,7 @@ public LogFileFilterOutputStream(OutputStream out, Charset charset, String jobNa // Log defaultRegexpPairs for (RegexpPair pair : defaultRegexpPairs) { - LOGGER.log(Level.INFO, pair.toString()); + LOGGER.log(Level.CONFIG, pair.toString()); } } else { customRegexpPairs = Collections.emptyList();