Skip to content

Commit

Permalink
Changes log levels and improves log statements
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Dec 20, 2024
1 parent f514859 commit 193e846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ public void onNodeStarted(DiscoveryNode localNode) {
String resourceIndex = resourcePlugin.getResourceIndex();

this.indicesToListen.add(resourceIndex);
log.info("Preparing to listen to index: {} of plugin: {}", resourceIndex, resourcePlugin);
log.warn("Security plugin started listening to index: {} of plugin: {}", resourceIndex, resourcePlugin);
}

final Set<ModuleInfo> securityModules = ReflectionHelper.getModulesLoaded();
Expand All @@ -2148,7 +2148,6 @@ public Collection<Class<? extends LifecycleComponent>> getGuiceServiceClasses()

final List<Class<? extends LifecycleComponent>> services = new ArrayList<>(1);
services.add(GuiceHolder.class);
log.info("Guice service classes loaded");
return services;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ public class ResourceSharingIndexListener implements IndexingOperationListener {
private ResourceSharingIndexListener() {}

public static ResourceSharingIndexListener getInstance() {

return ResourceSharingIndexListener.INSTANCE;

}

/**
Expand Down Expand Up @@ -122,11 +120,9 @@ public void postDelete(ShardId shardId, Engine.Delete delete, Engine.DeleteResul

boolean success = this.resourceSharingIndexHandler.deleteResourceSharingRecord(resourceId, resourceIndex);
if (success) {
log.info("Successfully deleted resource sharing entries for resource {}", resourceId);
log.info("Successfully deleted resource sharing entry for resource {}", resourceId);
} else {
log.info("Failed to delete resource sharing entry for resource {}", resourceId);
}

}

}

0 comments on commit 193e846

Please sign in to comment.