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); }