Skip to content

Commit

Permalink
Adding development logs.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Aug 17, 2023
1 parent 6a8c8fc commit 53b340a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ class GetRemoteIndexesLatencyRequest : ActionRequest {
log.info("hurneyt GetRemoteIndexesLatencyRequest::parse START")
val remoteIndexes = mutableListOf<RemoteIndex>()

log.info("hurneyt GetRemoteIndexesLatencyRequest::parse xcp.currentToken() = ${xcp.currentToken().name}")
log.info("hurneyt GetRemoteIndexesLatencyRequest::parse xcp == null = ${xcp == null}")
log.info("hurneyt GetRemoteIndexesLatencyRequest::parse xcp.map.keys = ${xcp?.map()?.keys?.joinToString(", ")}")
log.info("hurneyt GetRemoteIndexesLatencyRequest::parse xcp.currentToken() = ${xcp?.currentToken()?.name}")

ensureExpectedToken(XContentParser.Token.START_OBJECT, xcp.currentToken(), xcp)
while (xcp.nextToken() != XContentParser.Token.END_OBJECT) {
val fieldName = xcp.currentName()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ class RestGetRemoteIndexesLatencyAction : BaseRestHandler() {

override fun prepareRequest(request: RestRequest, client: NodeClient): RestChannelConsumer {
log.debug("${request.method()} $ROUTE")

val indexes = request.param("clusters")

log.info("hurneyt RestGetRemoteIndexesLatencyAction request.params.keys = ${request.params().keys.joinToString(", ")}")
log.info("hurneyt RestGetRemoteIndexesLatencyAction indexes = $indexes")
return RestChannelConsumer {
channel ->
client.execute(
Expand Down

0 comments on commit 53b340a

Please sign in to comment.