Skip to content

Commit

Permalink
Fixes log statement
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Nov 27, 2024
1 parent 58003f6 commit 078a976
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@ public void onIndexModule(IndexModule indexModule) {
)
);

log.info("Indices to listen to: {}", this.indicesToListen);
if (this.indicesToListen.contains(indexModule.getIndex().getName())) {
ResourceSharingIndexListener resourceSharingIndexListener = ResourceSharingIndexListener.getInstance();
resourceSharingIndexListener.initialize(threadPool, localClient);
Expand Down Expand Up @@ -2099,12 +2098,11 @@ public void onNodeStarted(DiscoveryNode localNode) {
// create resource sharing index if absent
rmr.createResourceSharingIndexIfAbsent();

log.info("Loading resource plugins");
for (ResourcePlugin resourcePlugin : OpenSearchSecurityPlugin.GuiceHolder.getResourceService().listResourcePlugins()) {
String resourceIndex = resourcePlugin.getResourceIndex();

this.indicesToListen.add(resourceIndex);
log.info("Loaded resource plugin: {}, index: {}", resourcePlugin, resourceIndex);
log.info("Preparing to listen to index: {} of plugin: {}", resourceIndex, resourcePlugin);
}

final Set<ModuleInfo> securityModules = ReflectionHelper.getModulesLoaded();
Expand Down

0 comments on commit 078a976

Please sign in to comment.