root 2 роки тому
батько
коміт
f9a0d6c0db

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

@@ -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);