我正在使用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
据我所知,一切都没有改变。我怎么能摆脱它?
答案 0 :(得分:0)
它可能是您的日志库。 HttpClient
可能取决于commons-logging
,java.util.logging
会自动选择类路径中的日志记录实现(log4j
或$login = TableRegistry::get('login');
$result = $login->loginuser($loginid, $password);
if (isset($result[0]) && isset($result[0]->memberid)) {
echo $result[0]->memberid;
}
),默认情况下会在控制台上写入。