From cfc847deba0549050bd78716b779be1858095a7e Mon Sep 17 00:00:00 2001 From: zhichao-aws Date: Wed, 27 Sep 2023 08:08:45 +0800 Subject: [PATCH] remove debug log including inference result Signed-off-by: zhichao-aws --- .../org/opensearch/neuralsearch/ml/MLCommonsClientAccessor.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/opensearch/neuralsearch/ml/MLCommonsClientAccessor.java b/src/main/java/org/opensearch/neuralsearch/ml/MLCommonsClientAccessor.java index ed0d95d1a..6f8b790bb 100644 --- a/src/main/java/org/opensearch/neuralsearch/ml/MLCommonsClientAccessor.java +++ b/src/main/java/org/opensearch/neuralsearch/ml/MLCommonsClientAccessor.java @@ -122,7 +122,6 @@ private void retryableInferenceSentencesWithMapResult( MLInput mlInput = createMLInput(null, inputText); mlClient.predict(modelId, mlInput, ActionListener.wrap(mlOutput -> { final List> result = buildMapResultFromResponse(mlOutput); - log.debug("Inference Response for input sentence {} is : {} ", inputText, result); listener.onResponse(result); }, e -> { if (RetryUtil.shouldRetry(e, retryTime)) { @@ -144,7 +143,6 @@ private void retryableInferenceSentencesWithVectorResult( MLInput mlInput = createMLInput(targetResponseFilters, inputText); mlClient.predict(modelId, mlInput, ActionListener.wrap(mlOutput -> { final List> vector = buildVectorFromResponse(mlOutput); - log.debug("Inference Response for input sentence {} is : {} ", inputText, vector); listener.onResponse(vector); }, e -> { if (RetryUtil.shouldRetry(e, retryTime)) {