@@ -23,7 +23,7 @@ public static String request(String url, String method, Object body, Map<String,
23
23
switch (method ) {
24
24
case "GET" :
25
25
url = buildUrlWithQueryParams (url , JsonUtils .deserialize (JsonUtils .serialize (body ), Map .class ));
26
- log .info ("请求 url: {}" , url );
26
+ log .debug ("请求 url: {}" , url );
27
27
httpResponse = HttpUtil
28
28
.createRequest (Method .valueOf (method ), url )
29
29
.setReadTimeout (timeout )
@@ -33,7 +33,7 @@ public static String request(String url, String method, Object body, Map<String,
33
33
break ;
34
34
case "POST" :
35
35
String bodyString = JsonUtils .serialize (body );
36
- log .info ("请求 url:{}, body: {}" , url , bodyString );
36
+ log .debug ("请求 url:{}, body: {}" , url , bodyString );
37
37
httpResponse = HttpUtil
38
38
.createRequest (Method .valueOf (method ), url )
39
39
.setReadTimeout (timeout )
@@ -45,7 +45,7 @@ public static String request(String url, String method, Object body, Map<String,
45
45
46
46
case "UrlencodedPOST" :
47
47
String urlencodedBodyString = buildQueryParams (JsonUtils .deserialize (JsonUtils .serialize (body ), Map .class ));
48
- log .info ("请求 url:{}, body: {}" , url , urlencodedBodyString );
48
+ log .debug ("请求 url:{}, body: {}" , url , urlencodedBodyString );
49
49
httpResponse = HttpUtil
50
50
.createRequest (Method .valueOf ("POST" ), url )
51
51
.setReadTimeout (timeout )
@@ -59,7 +59,7 @@ public static String request(String url, String method, Object body, Map<String,
59
59
}
60
60
if (httpResponse .isOk ()) {
61
61
String response = httpResponse .body ();
62
- log .info ("响应:{}, 耗时:{} ms" , response , (System .currentTimeMillis () - start ));
62
+ log .debug ("响应:{}, 耗时:{} ms" , response , (System .currentTimeMillis () - start ));
63
63
return response ;
64
64
} else {
65
65
throw new RuntimeException (httpResponse .body ());
0 commit comments