HttpUtils的GET请求,日志级别info改成debug
HttpUtils的GET请求,日志级别info改成debug
This commit is contained in:
parent
31765f6392
commit
68549cfc2d
@ -56,7 +56,7 @@ public class HttpUtils
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
String urlNameString = url + "?" + param;
|
String urlNameString = url + "?" + param;
|
||||||
log.info("sendGet - {}", urlNameString);
|
log.debug("sendGet - {}", urlNameString);
|
||||||
URL realUrl = new URL(urlNameString);
|
URL realUrl = new URL(urlNameString);
|
||||||
URLConnection connection = realUrl.openConnection();
|
URLConnection connection = realUrl.openConnection();
|
||||||
connection.setRequestProperty("accept", "*/*");
|
connection.setRequestProperty("accept", "*/*");
|
||||||
@ -69,7 +69,7 @@ public class HttpUtils
|
|||||||
{
|
{
|
||||||
result.append(line);
|
result.append(line);
|
||||||
}
|
}
|
||||||
log.info("recv - {}", result);
|
log.debug("recv - {}", result);
|
||||||
}
|
}
|
||||||
catch (ConnectException e)
|
catch (ConnectException e)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user