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