Commit 1bc8c91c authored by Alexander Blom's avatar Alexander Blom Committed by Facebook Github Bot

Make AsyncSocket spam logs less

Summary:
VLOG(1) shows up in Android logs, which is annoying as some of our
tools try to repeatedly connect.

Reviewed By: yfeldblum

Differential Revision: D8297987

fbshipit-source-id: 45cf4320d2e2fcf570117fee6aef133b2d9986e6
parent 99082ae3
......@@ -1511,7 +1511,7 @@ void AsyncSocket::cacheAddresses() {
cachePeerAddress();
} catch (const std::system_error& e) {
if (e.code() != std::error_code(ENOTCONN, std::system_category())) {
VLOG(1) << "Error caching addresses: " << e.code().value() << ", "
VLOG(2) << "Error caching addresses: " << e.code().value() << ", "
<< e.code().message();
}
}
......@@ -2202,7 +2202,7 @@ void AsyncSocket::handleConnect() noexcept {
if (error != 0) {
AsyncSocketException ex(AsyncSocketException::NOT_OPEN,
"connect failed", error);
VLOG(1) << "AsyncSocket::handleConnect(this=" << this << ", fd="
VLOG(2) << "AsyncSocket::handleConnect(this=" << this << ", fd="
<< fd_ << " host=" << addr_.describe()
<< ") exception: " << ex.what();
return failConnect(__func__, ex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment