You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "vernedeng (via GitHub)" <gi...@apache.org> on 2023/10/16 10:50:51 UTC
Re: [PR] [INLONG-8674][Manager] Pulsar - Modify the calling method from SDK to HTTP [inlong]
vernedeng commented on code in PR #8941:
URL: https://github.com/apache/inlong/pull/8941#discussion_r1360477012
##########
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/util/HttpUtils.java:
##########
@@ -112,6 +112,22 @@ public static <T> T request(RestTemplate restTemplate, String url, HttpMethod ht
return response.getBody();
}
+ /**
+ * Send an void HTTP request
+ */
+ public static void request(RestTemplate restTemplate, String url, HttpMethod httpMethod, Object requestBody,
+ HttpHeaders header) {
+ if (log.isDebugEnabled()) {
+ log.debug("begin request to {} by request body {}", url, GSON.toJson(requestBody));
Review Comment:
just print the debug log directly
--
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: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org