From a9f463fff9807e49c0d47244cd8edd770f0e24f5 Mon Sep 17 00:00:00 2001 From: SB YB Date: Wed, 3 Nov 2021 12:46:08 -0700 Subject: [PATCH] [PLAT-2180] Missing error response logging when demoteInstance fails Summary: Added logging Test Plan: None. Simple logging change. Will just run existing tests to mak sur enothing breaks. Reviewers: nsingh Reviewed By: nsingh Subscribers: jenkins-bot, yugaware Differential Revision: https://phabricator.dev.yugabyte.com/D13776 --- .../java/com/yugabyte/yw/common/PlatformInstanceClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/managed/src/main/java/com/yugabyte/yw/common/PlatformInstanceClient.java b/managed/src/main/java/com/yugabyte/yw/common/PlatformInstanceClient.java index 57ac47e1aff0..2d117ec30cb7 100644 --- a/managed/src/main/java/com/yugabyte/yw/common/PlatformInstanceClient.java +++ b/managed/src/main/java/com/yugabyte/yw/common/PlatformInstanceClient.java @@ -74,7 +74,7 @@ private JsonNode makeRequest(Call call, JsonNode payload) { } if (response == null || response.get("error") != null) { - LOG.error("Error received from remote instance {}", this.remoteAddress); + LOG.error("Error received from remote instance {}: {}", this.remoteAddress, response); throw new RuntimeException("Error received from remote instance " + this.remoteAddress); }