Showing
1 changed file
with
2 additions
and
3 deletions
@@ -114,7 +114,7 @@ public class HttpRestClientServiceImpl implements HttpRestClientService { | @@ -114,7 +114,7 @@ public class HttpRestClientServiceImpl implements HttpRestClientService { | ||
114 | @Override | 114 | @Override |
115 | public <T> T getWithHeaderHost(String path, Map request, Class<T> responseType) { | 115 | public <T> T getWithHeaderHost(String path, Map request, Class<T> responseType) { |
116 | 116 | ||
117 | - logger.debug("begin to do http get host. path:{}, request params:{}", path, request); | 117 | + logger.debug("begin getWithHeaderHost. path:{}, request params:{}", path, request); |
118 | 118 | ||
119 | //add accept json | 119 | //add accept json |
120 | HttpHeaders headers = new HttpHeaders(); | 120 | HttpHeaders headers = new HttpHeaders(); |
@@ -136,11 +136,10 @@ public class HttpRestClientServiceImpl implements HttpRestClientService { | @@ -136,11 +136,10 @@ public class HttpRestClientServiceImpl implements HttpRestClientService { | ||
136 | } | 136 | } |
137 | 137 | ||
138 | final URI getURI = builder.build().encode().toUri(); | 138 | final URI getURI = builder.build().encode().toUri(); |
139 | - logger.debug("begin to do http get host. url:{}", getURI); | ||
140 | 139 | ||
141 | try { | 140 | try { |
142 | HttpEntity<T> response = restTemplate.exchange(getURI, HttpMethod.GET, entity, responseType); | 141 | HttpEntity<T> response = restTemplate.exchange(getURI, HttpMethod.GET, entity, responseType); |
143 | - logger.debug("end to do http get. path:{}, request params:{}. response body: {}", path, request, response.getBody()); | 142 | + logger.debug("getWithHeaderHost end. path:{}, request params:{}. response body: {}", path, request, response.getBody()); |
144 | return response.getBody(); | 143 | return response.getBody(); |
145 | } catch (Exception e) { | 144 | } catch (Exception e) { |
146 | logger.error("getWithHeaderHost failed!url:"+path, e); | 145 | logger.error("getWithHeaderHost failed!url:"+path, e); |
-
Please register or login to post a comment