Skip to content

Commit

Permalink
Fix up comments and remove debug logging
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <widdis@gmail.com>
  • Loading branch information
dbwiddis committed Mar 23, 2023
1 parent 8b2f179 commit 0c43ea3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.opensearch.tasks.TaskManager;

/**
* A proxy transport action used to proxy a transport request from OpenSearch or a plugin to execute on an extension
* A proxy transport action used to proxy a transport request from an extension to execute on another extension
*
* @opensearch.internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public DiscoveryExtensionNode getExtension(String action) {
if (uniqueId == null) {
throw new ActionNotFoundTransportException(action);
}
logger.info("Got extension: " + extensionIdMap.get(uniqueId));
return extensionIdMap.get(uniqueId);
}

Expand All @@ -107,10 +106,8 @@ public DiscoveryExtensionNode getExtension(String action) {
* @return A {@link AcknowledgedResponse} indicating success.
*/
public TransportResponse handleRegisterTransportActionsRequest(RegisterTransportActionsRequest transportActionsRequest) {
logger.debug("Register Transport Actions request recieved {}", transportActionsRequest);
try {
for (String action : transportActionsRequest.getTransportActions()) {
logger.info("Registering action " + action + " with id " + transportActionsRequest.getUniqueId());
registerAction(action, transportActionsRequest.getUniqueId());
}
} catch (Exception e) {
Expand Down

0 comments on commit 0c43ea3

Please sign in to comment.