prefs: add log.

Signed-off-by: feihu.wang <wfh45678@163.com>
This commit is contained in:
feihu.wang
2019-11-17 13:54:28 +08:00
parent 821181e7ff
commit 74dc116946

View File

@@ -141,6 +141,7 @@ public class PluginServiceImpl implements PluginService {
HttpHeaders headers = new HttpHeaders();
HttpEntity<String> entity = new HttpEntity<>(headers);
ResponseEntity<JSONObject> responseEntity = restTemplate.exchange(url, HttpMethod.valueOf(reqType), entity, JSONObject.class, args);
logger.info("http plugin:{}\n{}\n {}", url, args, responseEntity.toString());
if (responseEntity.getStatusCode() == HttpStatus.OK) {
return responseEntity.getBody();
}