From 3533ac9c3df7e2889a04216f7cb05c28bdd08924 Mon Sep 17 00:00:00 2001
From: "eugene.livis" <elivis@basistech.com>
Date: Thu, 28 Sep 2023 14:07:46 -0400
Subject: [PATCH] Minimizing console output for command line use case

---
 bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java b/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java
index 6ee48bd91..80981480a 100644
--- a/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java
+++ b/bindings/java/src/org/sleuthkit/datamodel/LibraryUtils.java
@@ -74,7 +74,8 @@ public static boolean loadSleuthkitJNI() {
 		if (!loaded) {
 			System.out.println("SleuthkitJNI: failed to load " + Lib.TSK_JNI.getLibName()); //NON-NLS
 		} else {
-			System.out.println("SleuthkitJNI: loaded " + Lib.TSK_JNI.getLibName()); //NON-NLS
+			// We want minimal console output for command line use case
+			//System.out.println("SleuthkitJNI: loaded " + Lib.TSK_JNI.getLibName()); //NON-NLS
 		}
 		return loaded;
 	}
@@ -166,7 +167,8 @@ private static boolean loadNativeLibFromTskJar(Lib library) {
 		// copy library to temp folder and load it
 		try {
 			java.io.File tempLibFile = new java.io.File(pathToTempFile.toString()); //NON-NLS
-			System.out.println("Temp Folder for Libraries: " + tempLibFile.getParent()); //NON-NLS
+			// We want minimal console output for command line use case
+			//System.out.println("Temp Folder for Libraries: " + tempLibFile.getParent()); //NON-NLS
 
 			// cycle through the libraries and delete them. 
 			// we used to copy dlls into here. 
-- 
GitLab