Skip to content

Commit 556d17c

Browse files
committed
improve: update log level
1 parent 50254fe commit 556d17c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This SDK is built upon [Authing Management API(v3)](https://api.authing.cn/opena
2525
<dependency>
2626
<groupId>cn.authing</groupId>
2727
<artifactId>authing-java-sdk</artifactId>
28-
<version>3.1.13</version>
28+
<version>3.1.14</version>
2929
</dependency>
3030
```
3131

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>cn.authing</groupId>
88
<artifactId>authing-java-sdk</artifactId>
9-
<version>3.1.13</version>
9+
<version>3.1.14</version>
1010

1111
<name>Authing Java SDK</name>
1212
<description>java backend sdk for authing</description>

src/main/java/cn/authing/sdk/java/util/HttpUtils.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)