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 2ec34d0 commit 983b4cc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ class TransportGetRemoteIndexesAction @Inject constructor(
return
}

val userStr = client.threadPool().threadContext
.getTransient<String>(ConfigConstants.OPENSEARCH_SECURITY_USER_INFO_THREAD_CONTEXT)
log.info("hurneyt TransportGetRemoteIndexesAction::userStr = {}", userStr)

client.threadPool().threadContext.stashContext().use {
val userStr = client.threadPool().threadContext
.getTransient<String>(ConfigConstants.OPENSEARCH_SECURITY_USER_INFO_THREAD_CONTEXT)
client.threadPool().threadContext.putTransient(ConfigConstants.OPENSEARCH_SECURITY_USER_INFO_THREAD_CONTEXT, userStr)
scope.launch {
val clusterIndexesList = mutableListOf<ClusterIndexes>()
Expand Down

0 comments on commit 983b4cc

Please sign in to comment.