Skip to content

Commit

Permalink
[debug] Add new error print into log when JSONRPCClient request failed
Browse files Browse the repository at this point in the history
  • Loading branch information
welbon committed Jun 27, 2024
1 parent 7e73751 commit 9455366
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.starcoin</groupId>
<artifactId>sdk</artifactId>
<version>1.2.7</version>
<version>1.2.8</version>

<name>Starcoin Java SDK</name>
<description>Starcoin Java SDK</description>
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/org/starcoin/api/JsonRPCClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ protected T getObject(JSONRPC2Session session, String method, List<Object> param
logger.warn("get object result is null, method:" + method);
}
} else {
logger.error("getObject error, url:{}, request:{}, class: {}, error: {}",
logger.error("getObject error, url:{}, request:{}, class: {}, response: {}",
session.getURL(),
request,
clazz,
response.getError()
response
);
}
return null;
Expand Down Expand Up @@ -95,11 +95,11 @@ protected T getObjectParseJackson(JSONRPC2Session session, String method, List<O
logger.warn("get object parse jackson result is null, method:" + method);
}
} else {
logger.error("getObjectParseJackson failed, url:{}, request:{}, class: {}, error: {}",
logger.error("getObjectParseJackson failed, url:{}, request:{}, class: {}, response: {}",
session.getURL(),
request,
clazz,
response.getError()
response
);
}
return null;
Expand Down Expand Up @@ -130,11 +130,11 @@ protected T getSubObject(JSONRPC2Session session, String method, List<Object> pa
logger.warn("get sub object result is null, method:" + method);
}
} else {
logger.error("getSubObject error, url:{}, request:{}, class: {}, error: {}",
logger.error("getSubObject error, url:{}, request:{}, class: {}, response: {}",
session.getURL(),
request,
clazz,
response.getError()
response
);
}
return null;
Expand Down Expand Up @@ -165,11 +165,11 @@ protected List<T> getObjectArray(JSONRPC2Session session, String method, List<Ob
logger.warn("get object result is null, method:" + method);
}
} else {
logger.error("getObjectArray error, url:{}, request:{}, class: {}, error: {}",
logger.error("getObjectArray error, url:{}, request:{}, class: {}, response: {}",
session.getURL(),
request,
clazz,
response.getError()
response
);
}
return null;
Expand Down

0 comments on commit 9455366

Please sign in to comment.