From 28c6c41a22bfccae4dcd72ebd4c133558b72e1bc Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 27 Sep 2023 15:55:33 -0700 Subject: [PATCH] Fix error message in TransportDeplpoyModelAction class (#1368) (#1389) * Fix error message in TransportDeplpoyModelAction class Signed-off-by: Sicheng Song * Elaborate error message Signed-off-by: Sicheng Song --------- Signed-off-by: Sicheng Song (cherry picked from commit 9b6af2ea10eeec494f7f795a44982e3504b805b2) Co-authored-by: Sicheng Song --- .../ml/action/deploy/TransportDeployModelAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java b/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java index 630a079309..54552fc204 100644 --- a/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java +++ b/plugin/src/main/java/org/opensearch/ml/action/deploy/TransportDeployModelAction.java @@ -255,11 +255,11 @@ protected void doExecute(Task task, ActionRequest request, ActionListener { - log.error("Failed to deploy model " + modelId, e); + log.error("Failed to retrieve the ML model with ID: " + modelId, e); listener.onFailure(e); })); } catch (Exception e) { - log.error("Failed to get ML model " + modelId, e); + log.error("Failed to deploy the ML model with ID " + modelId, e); listener.onFailure(e); }