[#666] Add RPC error response logs
Description
Problem: In cases where RPC responds with an error, we only throw the corresponding human-readable error, but don't log the response itself, although in some cases it would be useful for us to know what response is. They should be logged at the maximum verbosity level like the other json requests and responses info from RPC.
Solution: In runRequestAcceptStatusImpl
, extract response
from ClientError
, log it like sucessful response, then
throw the matching error.
Related issue(s)
Resolves #666 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.