Skip to content

Commit

Permalink
[PLAT-2180] Missing error response logging when demoteInstance fails
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sb-yb committed Nov 3, 2021
1 parent baa9966 commit a9f463f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a9f463f

Please sign in to comment.