eclipse控制台突然显示INFO

时间:2016-10-03 13:30:18

标签: eclipse

我正在使用apache HttpClient,并且我已经开始在eclipse控制台上看到一些INFO输出:

0    [main] INFO  org.apache.commons.httpclient.HttpMethodDirector  - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
3    [main] INFO  org.apache.commons.httpclient.HttpMethodDirector  - Retrying request
3861 [pool-1-thread-25] INFO  org.apache.commons.httpclient.HttpMethodDirector  - I/O exception (java.net.ConnectException) caught when processing request: Connection refused: connect
3861 [pool-1-thread-25] INFO  org.apache.commons.httpclient.HttpMethodDirector  - Retrying request
3913 [pool-1-thread-16] INFO  org.apache.commons.httpclient.HttpMethodBase  - Response content length is not known

据我所知,一切都没有改变。我怎么能摆脱它?

1 个答案:

答案 0 :(得分:0)

它可能是您的日志库。 HttpClient可能取决于commons-loggingjava.util.logging会自动选择类路径中的日志记录实现(log4j$login = TableRegistry::get('login'); $result = $login->loginuser($loginid, $password); if (isset($result[0]) && isset($result[0]->memberid)) { echo $result[0]->memberid; } ),默认情况下会在控制台上写入。