Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public Registration registerCommandHandler(Function<Command, CompletableFuture<C
CommandHandler commandHandler = new CommandHandler(handler, loadFactor);
for (String commandName : commandNames) {
commandHandlers.put(commandName, commandHandler);
logger.info("Registered handler for command '{}' in context '{}'", commandName, context);
logger.debug("Registered handler for command '{}' in context '{}'", commandName, context);
CompletableFuture<Void> ack = sendSubscribe(commandName, loadFactor, outboundCommandStream.get());
subscriptionResult = CompletableFuture.allOf(subscriptionResult, ack);
}
Expand Down Expand Up @@ -285,7 +285,7 @@ private CompletableFuture<Void> unsubscribe(CommandHandler handler,
CompletableFuture<Void> future = CompletableFuture.completedFuture(null);
for (String commandName : commandNames) {
if (commandHandlers.get(commandName) == handler) {
logger.info("Deregistered handler for command '{}' in context '{}'", commandName, context);
logger.debug("Deregistered handler for command '{}' in context '{}'", commandName, context);
CompletableFuture<Void> result = sendUnsubscribe(commandName, outboundCommandStream.get())
.thenRun(() -> commandHandlers.remove(commandName, handler));
future = CompletableFuture.allOf(future, result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public Registration registerQueryHandler(QueryHandler handler, QueryDefinition..
outboundQueryStream.get());
subscriptionResult = CompletableFuture.allOf(subscriptionResult, instructionResult);
}
logger.info("Registered handler for query '{}' in context '{}'", queryDefinition, context);
logger.debug("Registered handler for query '{}' in context '{}'", queryDefinition, context);
}
}
return new AsyncRegistration(subscriptionResult, () -> {
Expand Down
Loading