Skip to content

Commit

Permalink
address KffFile logging (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
drivenflywheel authored Sep 21, 2023
1 parent ee58307 commit ef13f6a
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 @@ -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
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 ef13f6a

Please sign in to comment.