From 460681665f883c5a62014d1011dfd9d5ca6bb295 Mon Sep 17 00:00:00 2001 From: "U-BASIS\\dsmyda" <dsmyda@win-dsmyd-2925.basistech.net> Date: Thu, 17 Sep 2020 14:14:22 -0400 Subject: [PATCH] Reduced the logging at the connection pool by changing the cut off level to include only severes --- .../java/src/org/sleuthkit/datamodel/SleuthkitCase.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java index 98f436f18..44e3d60f8 100644 --- a/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java +++ b/bindings/java/src/org/sleuthkit/datamodel/SleuthkitCase.java @@ -57,6 +57,7 @@ import java.util.List; import java.util.Map; import java.util.MissingResourceException; +import java.util.Properties; import java.util.ResourceBundle; import java.util.Set; import java.util.UUID; @@ -230,6 +231,13 @@ void fireTSKEvent(Object event) { private final Map<Long, Content> frequentlyUsedContentMap = new HashMap<>(); private Examiner cachedCurrentExaminer = null; + + static { + Properties p = new Properties(System.getProperties()); + p.put("com.mchange.v2.log.MLog", "com.mchange.v2.log.FallbackMLog"); + p.put("com.mchange.v2.log.FallbackMLog.DEFAULT_CUTOFF_LEVEL", "SEVERE"); + System.setProperties(p); + } /** * Attempts to connect to the database with the passed in settings, throws -- GitLab