From 4fc8aeec0c084dda0aeca2284cab3eb38c99c7cc Mon Sep 17 00:00:00 2001 From: Annie Lee Date: Wed, 9 Mar 2022 17:28:12 -0800 Subject: [PATCH] Update RestGetFindingsSearchAction.kt Signed-off-by: Annie Lee --- .../alerting/resthandler/RestGetFindingsSearchAction.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestGetFindingsSearchAction.kt b/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestGetFindingsSearchAction.kt index 6fe09fb52..7215ef0d0 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestGetFindingsSearchAction.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestGetFindingsSearchAction.kt @@ -35,7 +35,7 @@ class RestGetFindingsSearchAction : BaseRestHandler() { } override fun prepareRequest(request: RestRequest, client: NodeClient): RestChannelConsumer { - log.debug("${request.method()} ${request.path()}") + log.info("${request.method()} ${request.path()}") val findingID: String? = request.param("findingID") @@ -44,7 +44,6 @@ class RestGetFindingsSearchAction : BaseRestHandler() { srcContext = FetchSourceContext.DO_NOT_FETCH_SOURCE } - val sortString = request.param("sortString", "finding.name.keyword") val sortOrder = request.param("sortOrder", "asc") val missing: String? = request.param("missing") val size = request.paramAsInt("size", 20) @@ -53,7 +52,6 @@ class RestGetFindingsSearchAction : BaseRestHandler() { val table = Table( sortOrder, - sortString, missing, size, startIndex,