File tree Expand file tree Collapse file tree
server/src/main/java/org/opensearch/extensions/rest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 */
3737public class RestSendToExtensionAction extends BaseRestHandler {
3838
39+ private static final String SEND_TO_EXTENSION_ACTION = "send_to_extension_action" ;
3940 private static final Logger logger = LogManager .getLogger (RestSendToExtensionAction .class );
4041
4142 private final List <Route > routes ;
@@ -77,7 +78,7 @@ public RestSendToExtensionAction(
7778
7879 @ Override
7980 public String getName () {
80- return "send_to_extension_action" ;
81+ return SEND_TO_EXTENSION_ACTION ;
8182 }
8283
8384 @ Override
@@ -129,7 +130,7 @@ public String executor() {
129130 restExecuteOnExtensionResponseHandler
130131 );
131132 } catch (Exception e ) {
132- logger .info ("Failed to send Register REST Actions request to OpenSearch" , e );
133+ logger .info ("Failed to send REST Actions to extension " + discoveryExtension . getName () , e );
133134 }
134135 }
135136 }
You can’t perform that action at this time.
0 commit comments