From 5b108eeb03248b873c21e91839fe11f79183652b Mon Sep 17 00:00:00 2001 From: Annie Lee Date: Thu, 17 Mar 2022 18:30:00 -0700 Subject: [PATCH] Update TransportGetFindingsSearchAction.kt --- .../alerting/transport/TransportGetFindingsSearchAction.kt | 3 +-- 1 file changed, 1 insertion(+), 2 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 3764c04f9..aa6f255a7 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/transport/TransportGetFindingsSearchAction.kt @@ -153,8 +153,7 @@ class TransportGetFindingsSearchAction @Inject constructor( log.info("hit.sourceAsString: $source") val xcp = XContentFactory.xContent(XContentType.JSON) .createParser(xContentRegistry, LoggingDeprecationHandler.INSTANCE, hit.sourceAsString) - XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, xcp.nextToken(), xcp) - XContentParserUtils.ensureExpectedToken(XContentParser.Token.FIELD_NAME, xcp.nextToken(), xcp) + log.info("created parser") XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, xcp.nextToken(), xcp) // TODO: Remove debug log log.info("Adding new finding with id: $id")