Skip to content

Commit

Permalink
Minor whitespace cleanup, reduced level of log message in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drivenflywheel committed Sep 20, 2023
1 parent 3bce395 commit e66abdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/emissary/kff/KffFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/emissary/kff/KffFileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void testConcurrentKffFileCheckCalls() throws Exception {

List<KffFileCheckTask> 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 {
Expand Down Expand Up @@ -272,7 +272,7 @@ static class KffFileCheckTask implements Callable<Boolean> {
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);
}
}
Expand Down

0 comments on commit e66abdc

Please sign in to comment.