增加日志

This commit is contained in:
wanggeng 2022-06-29 17:30:04 +08:00
parent 472cb217c6
commit 3d255e4495

View File

@ -112,6 +112,7 @@ public class RestRemoteRequest {
* @return
*/
public String post(String remoteUri, Map<String, String> headers, Object jsonBody) {
LOG.debug("Request POST Json: {}", jsonBody);
try {
HttpEntity<String> httpEntity = getHttpEntity(headers, null, jsonBody);
ResponseEntity<String> responseEntity = getRestTemplate(remoteUri).exchange(remoteUri, HttpMethod.POST, httpEntity, String.class);
@ -129,6 +130,7 @@ public class RestRemoteRequest {
* @return
*/
public String post(String remoteUri, Map<String, String> headers, MultiValueMap<String, Object> formVariableParams) {
LOG.debug("Request POST Form: {}", formVariableParams);
try {
HttpEntity<String> httpEntity = getHttpEntity(headers, formVariableParams, null);
ResponseEntity<String> responseEntity = getRestTemplate(remoteUri).exchange(remoteUri, HttpMethod.POST, httpEntity, String.class);