From 5ed68b2f7971c07464b89089ab579012ec4d5a54 Mon Sep 17 00:00:00 2001 From: Annie Lee Date: Tue, 29 Mar 2022 16:27:45 -0700 Subject: [PATCH] Update TransportGetFindingsSearchAction.kt --- .../alerting/transport/TransportGetFindingsSearchAction.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt b/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt index 9cedb3c64..9b8c11a74 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt @@ -135,14 +135,13 @@ class TransportGetFindingsSearchAction @Inject constructor( } } - fun search(searchSourceBuilder: SearchSourceBuilder, actionListener: ActionListener) { - log.info("Entering RestGetFindingsSearchAction.kt.") + fun search(searchSourceBuilder: SearchSourceBuilder, actionListener: ActionListener) { val searchRequest = SearchRequest() .source(searchSourceBuilder) .indices(".opensearch-alerting-findings") client.search( searchRequest, - object : ActionListener { + object : ActionListener { override fun onResponse(response: GetFindingsSearchResponse) { val totalFindingCount = response.hits.totalHits?.value?.toInt() val findings = mutableListOf()