From db8283c6ff59065a9cbdddf56bfac9ee0e5b3396 Mon Sep 17 00:00:00 2001 From: Anshu Agarwal Date: Thu, 6 Oct 2022 22:42:28 +0530 Subject: [PATCH] Address review comment Signed-off-by: Anshu Agarwal --- .../opensearch/cluster/routing/WeightedRoutingService.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/src/main/java/org/opensearch/cluster/routing/WeightedRoutingService.java b/server/src/main/java/org/opensearch/cluster/routing/WeightedRoutingService.java index 7afd3f82eccbf..54f2c81aea384 100644 --- a/server/src/main/java/org/opensearch/cluster/routing/WeightedRoutingService.java +++ b/server/src/main/java/org/opensearch/cluster/routing/WeightedRoutingService.java @@ -123,12 +123,7 @@ public ClusterState execute(ClusterState currentState) { @Override public void onFailure(String source, Exception e) { - logger.error( - () -> new ParameterizedMessage( - "failed to remove weighted routing metadata from cluster state with an exception [{}]", - e - ) - ); + logger.error("failed to remove weighted routing metadata from cluster state", e); listener.onFailure(e); }