root 2 年之前
父節點
當前提交
f9a0d6c0db
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api-common/src/main/java/api/common/util/HttpUtil.java

+ 2 - 1
api-common/src/main/java/api/common/util/HttpUtil.java

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