Skip to content

Commit 20aa5bb

Browse files
committed
remove useless log
Signed-off-by: xinyual <xinyual@amazon.com>
1 parent 1d9d3b7 commit 20aa5bb

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

common/src/main/java/org/opensearch/ml/common/connector/HttpConnector.java

-2
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,6 @@ public <T> T createPredictPayload(Map<String, String> parameters) {
289289
payload = fillNullParameters(parameters, payload);
290290
StringSubstitutor substitutor = new StringSubstitutor(parameters, "${parameters.", "}");
291291
payload = substitutor.replace(payload);
292-
log.info("to LLM");
293-
log.info(payload);
294292
if (!isJson(payload)) {
295293
throw new IllegalArgumentException("Invalid JSON in payload");
296294
}

ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote/AwsConnectorExecutor.java

-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ public void invokeRemoteModel(MLInput mlInput, Map<String, String> parameters, S
117117
throw new OpenSearchStatusException("No response from model", RestStatus.BAD_REQUEST);
118118
}
119119
String modelResponse = responseBuilder.toString();
120-
log.info("from LLM");
121-
log.info(modelResponse);
122120
if (statusCode < 200 || statusCode >= 300) {
123121
throw new OpenSearchStatusException(REMOTE_SERVICE_ERROR + modelResponse, RestStatus.fromCode(statusCode));
124122
}

0 commit comments

Comments
 (0)