@@ -23,7 +23,7 @@ public static String request(String url, String method, Object body, Map<String,
2323 switch (method ) {
2424 case "GET" :
2525 url = buildUrlWithQueryParams (url , JsonUtils .deserialize (JsonUtils .serialize (body ), Map .class ));
26- log .info ("请求 url: {}" , url );
26+ log .debug ("请求 url: {}" , url );
2727 httpResponse = HttpUtil
2828 .createRequest (Method .valueOf (method ), url )
2929 .setReadTimeout (timeout )
@@ -33,7 +33,7 @@ public static String request(String url, String method, Object body, Map<String,
3333 break ;
3434 case "POST" :
3535 String bodyString = JsonUtils .serialize (body );
36- log .info ("请求 url:{}, body: {}" , url , bodyString );
36+ log .debug ("请求 url:{}, body: {}" , url , bodyString );
3737 httpResponse = HttpUtil
3838 .createRequest (Method .valueOf (method ), url )
3939 .setReadTimeout (timeout )
@@ -45,7 +45,7 @@ public static String request(String url, String method, Object body, Map<String,
4545
4646 case "UrlencodedPOST" :
4747 String urlencodedBodyString = buildQueryParams (JsonUtils .deserialize (JsonUtils .serialize (body ), Map .class ));
48- log .info ("请求 url:{}, body: {}" , url , urlencodedBodyString );
48+ log .debug ("请求 url:{}, body: {}" , url , urlencodedBodyString );
4949 httpResponse = HttpUtil
5050 .createRequest (Method .valueOf ("POST" ), url )
5151 .setReadTimeout (timeout )
@@ -59,7 +59,7 @@ public static String request(String url, String method, Object body, Map<String,
5959 }
6060 if (httpResponse .isOk ()) {
6161 String response = httpResponse .body ();
62- log .info ("响应:{}, 耗时:{} ms" , response , (System .currentTimeMillis () - start ));
62+ log .debug ("响应:{}, 耗时:{} ms" , response , (System .currentTimeMillis () - start ));
6363 return response ;
6464 } else {
6565 throw new RuntimeException (httpResponse .body ());
0 commit comments