Skip to content

Commit

Permalink
Rejuvenate log levels (#7737)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Tang authored Feb 15, 2020
1 parent 62400e7 commit be6010c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public Executable configure(String... args) {
() -> {
HealthCheck.Result check = node.getHealthCheck().check();
if (!check.isAlive()) {
LOG.info("Node is not alive: " + check.getMessage());
LOG.severe("Node is not alive: " + check.getMessage());
// Throw an exception to force another check sooner.
throw new UnsupportedOperationException("Node cannot be registered");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ public boolean test(Capabilities capabilities) {

@Override
public Optional<ActiveSession> apply(CreateSessionRequest sessionRequest) {
LOG.info("Capabilities are: " + new Json().toJson(sessionRequest.getCapabilities()));
LOG.finest("Capabilities are: " + new Json().toJson(sessionRequest.getCapabilities()));
return factories.stream()
.filter(factory -> factory.test(sessionRequest.getCapabilities()))
.peek(factory -> LOG.info(String.format("Matched factory %s", factory)))
.peek(factory -> LOG.finest(String.format("Matched factory %s", factory)))
.map(factory -> factory.apply(sessionRequest))
.filter(Optional::isPresent)
.map(Optional::get)
Expand Down

0 comments on commit be6010c

Please sign in to comment.