Skip to content

Commit aa27bda

Browse files
authored
Merge pull request #5212 from stacks-network/feat/improve-stacks-client-logging-in-fail-case
Print a warning if failed to parse the stackers response
2 parents 4f804ce + 065df11 commit aa27bda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

stacks-signer/src/client/stacks_client.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,10 @@ impl StacksClient {
590590
.map_err(|e| backoff::Error::transient(e.into()))?;
591591
let status = response.status();
592592
if status.is_success() {
593-
return response
594-
.json()
595-
.map_err(|e| backoff::Error::permanent(e.into()));
593+
return response.json().map_err(|e| {
594+
warn!("Failed to parse the GetStackers response: {e}");
595+
backoff::Error::permanent(e.into())
596+
});
596597
}
597598
let error_data = response.json::<GetStackersErrorResp>().map_err(|e| {
598599
warn!("Failed to parse the GetStackers error response: {e}");

0 commit comments

Comments
 (0)