Skip to content

Commit

Permalink
Update TransportGetFindingsSearchAction.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Annie Lee committed Mar 17, 2022
1 parent bd64bcd commit 592c2b2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class TransportGetFindingsSearchAction @Inject constructor(
log.info("Parsing hits.")
log.info("hit: $hit")
val id = hit.id
log.info("hit.sourceAsString: $hit.sourceAsString")
val xcp = XContentFactory.xContent(XContentType.JSON)
.createParser(xContentRegistry, LoggingDeprecationHandler.INSTANCE, hit.sourceAsString)
XContentParserUtils.ensureExpectedToken(XContentParser.Token.START_OBJECT, xcp.nextToken(), xcp)
Expand Down

0 comments on commit 592c2b2

Please sign in to comment.