|
@@ -85,7 +85,8 @@ public class HttpUtil {
|
|
|
if (statusCode == 200) {
|
|
|
result = EntityUtils.toString(response.getEntity());
|
|
|
} else {
|
|
|
- throw new RuntimeException("------- 请求错误:" + response);
|
|
|
+ log.error(response.getEntity().toString());
|
|
|
+ throw new RuntimeException("get() 请求错误:" + response);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
log.info("请求 " + url + " 失败。", e);
|