From e240cefc5fd6d881e740c28497f94ff3959ed214 Mon Sep 17 00:00:00 2001 From: Marc Handalian Date: Wed, 4 Oct 2023 16:21:10 -0700 Subject: [PATCH] Remove unnecessary logging format Signed-off-by: Marc Handalian --- .../blobstore/stream/read/listener/ReadContextListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/common/blobstore/stream/read/listener/ReadContextListener.java b/server/src/main/java/org/opensearch/common/blobstore/stream/read/listener/ReadContextListener.java index 31b082ade09ae..b464675ba3193 100644 --- a/server/src/main/java/org/opensearch/common/blobstore/stream/read/listener/ReadContextListener.java +++ b/server/src/main/java/org/opensearch/common/blobstore/stream/read/listener/ReadContextListener.java @@ -90,7 +90,7 @@ public void onResponse(ReadContext readContext) { @SuppressForbidden(reason = "need to fsync once all parts received") private ActionListener> getFileCompletionListener() { return ActionListener.wrap(response -> { - logger.trace(() -> new ParameterizedMessage("renaming temp file [{}] to [{}]", tmpFileLocation, fileLocation)); + logger.trace("renaming temp file [{}] to [{}]", tmpFileLocation, fileLocation); try { IOUtils.fsync(tmpFileLocation, false); Files.move(tmpFileLocation, fileLocation, StandardCopyOption.ATOMIC_MOVE);