From e66abdca9d63697f8be228e872e3b425d5792759 Mon Sep 17 00:00:00 2001 From: drivenflywheel Date: Wed, 20 Sep 2023 15:22:48 +0000 Subject: [PATCH] Minor whitespace cleanup, reduced level of log message in unit tests --- src/main/java/emissary/kff/KffFile.java | 3 +-- src/test/java/emissary/kff/KffFileTest.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/emissary/kff/KffFile.java b/src/main/java/emissary/kff/KffFile.java index 601ec418ed..9edbfbd65f 100755 --- a/src/main/java/emissary/kff/KffFile.java +++ b/src/main/java/emissary/kff/KffFile.java @@ -177,8 +177,7 @@ private boolean binaryFileSearch(@Nonnull byte[] hash, long crc) { return true; } } - } - catch (IOException e) { + } catch (IOException e) { logger.warn("Exception reading KffFile", e); } 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); } }