From f36dbf5186176c22ad6bfbd3e5fd708a3212184d Mon Sep 17 00:00:00 2001 From: Sicheng Song Date: Tue, 26 Sep 2023 16:35:42 -0700 Subject: [PATCH] Fix error message in TransportDeplpoyModelAction class (#1368) * 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) --- .../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); }