diff --git a/src/main/java/emissary/kff/KffFile.java b/src/main/java/emissary/kff/KffFile.java index 94fb56a55a..9edbfbd65f 100755 --- a/src/main/java/emissary/kff/KffFile.java +++ b/src/main/java/emissary/kff/KffFile.java @@ -178,8 +178,7 @@ private boolean binaryFileSearch(@Nonnull byte[] hash, long crc) { } } } catch (IOException e) { - logger.warn("Exception reading KffFile: {}", e.getMessage()); - return false; + logger.warn("Exception reading KffFile", e); } // not found diff --git a/src/test/java/emissary/kff/KffFileTest.java b/src/test/java/emissary/kff/KffFileTest.java index 1f88e6759d..86f2ac96bb 100644 --- a/src/test/java/emissary/kff/KffFileTest.java +++ b/src/test/java/emissary/kff/KffFileTest.java @@ -114,7 +114,7 @@ void testConcurrentKffFileCheckCalls() throws Exception { List callables = createCallableTasksForParallelExecution(testInputs); - logger.info("testing {} invocations, with {} that should return true", callables.size(), numberOfKffEntriesInTestFile); + logger.debug("testing {} invocations, with {} that should return true", callables.size(), numberOfKffEntriesInTestFile); ExecutorService executorService = null; try { @@ -272,7 +272,7 @@ static class KffFileCheckTask implements Callable { public Boolean call() throws Exception { boolean actual = kffFile.check("ignored param", csr); // increase this log level to view stream of executions and results - LOGGER.info("expected {}, got {}", expectedResult, actual); + LOGGER.debug("expected {}, got {}", expectedResult, actual); return expectedResult.equals(actual); } }