Skip to content

Commit

Permalink
Adding dev logs.
Browse files Browse the repository at this point in the history
Signed-off-by: AWSHurneyt <[email protected]>
  • Loading branch information
AWSHurneyt committed Jan 25, 2024
1 parent a2ed2cd commit b284919
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ import org.opensearch.client.Client
import org.opensearch.cluster.service.ClusterService
import org.opensearch.common.inject.Inject
import org.opensearch.common.settings.Settings
import org.opensearch.common.xcontent.XContentType
import org.opensearch.commons.alerting.util.string
import org.opensearch.core.xcontent.NamedXContentRegistry
import org.opensearch.core.xcontent.ToXContent
import org.opensearch.core.xcontent.XContentBuilder
import org.opensearch.tasks.Task
import org.opensearch.transport.TransportService
import java.time.Duration
Expand Down Expand Up @@ -67,7 +71,10 @@ class TransportGetRemoteIndexesAction @Inject constructor(
log.info("hurneyt TransportGetRemoteIndexesAction START")
val user = readUserFromThreadContext(client)
log.info("hurneyt TransportGetRemoteIndexesAction::user isNull = {}", user == null)
log.info("hurneyt TransportGetRemoteIndexesAction::user = {}", user?.convertToMap())
log.info(
"hurneyt TransportGetRemoteIndexesAction::user = {}",
user?.toXContent(XContentBuilder.builder(XContentType.JSON.xContent()), ToXContent.EMPTY_PARAMS)?.string()
)

if (!validateUserBackendRoles(user, actionListener)) {
return
Expand Down

0 comments on commit b284919

Please sign in to comment.