lynnbond commented on code in PR #2143: URL: https://github.com/apache/incubator-hugegraph/pull/2143#discussion_r1128872702
########## hugegraph-api/src/main/java/org/apache/hugegraph/api/cypher/CypherClient.java: ########## @@ -62,14 +68,14 @@ public CypherModel submitQuery(String cypherQuery,@Nullable Map<String, String> } RequestMessage request = createRequest(cypherQuery); - CypherModel res = null; + CypherModel res; try { List<Object> list = this.doQueryList(client, request); res = CypherModel.dataOf(request.getRequestId().toString(), list); } catch (Exception e) { - LOG.error(String.format("Failed to submit cypher-query: [ %s ], cause by:" - , cypherQuery), e); + LOG.error(String.format("Failed to submit cypher-query: [ %s ], cause by:", Review Comment: It's an error message, there isn't a method that allows me to use {} and print the stack trace at the same time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org