From f03886cbcee6115598cff64fe270e93677384278 Mon Sep 17 00:00:00 2001 From: Aurelien FOUCRET Date: Sat, 13 Apr 2024 09:10:38 +0200 Subject: [PATCH] Remove useless supplier usage --- .../inference/persistence/TrainedModelCacheMetadataService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelCacheMetadataService.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelCacheMetadataService.java index 1e98d838ee642..3cc79e4516376 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelCacheMetadataService.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/persistence/TrainedModelCacheMetadataService.java @@ -78,7 +78,7 @@ protected abstract TrainedModelCacheMetadata execute( @Override public void onFailure(@Nullable Exception e) { - LOGGER.error(() -> "unexpected failure during [" + getDescription() + "]", e); + LOGGER.error("unexpected failure during [" + getDescription() + "]", e); listener.onFailure(e); } }