Commit f4962102 authored by Denis Samoylov's avatar Denis Samoylov Committed by Facebook Github Bot 8

move AsyncSSLSocket logging level for errors to vlog

Summary: current log entries ("E0906 AsyncSSLSocket.cpp:117] TCP connect failed: AsyncSocketException: connect failed, type = Socket not open, errno = 111 (Connection refused)") are not very helpful to debug due lack of details and can spam logs of application that uses async library without ability to disable logging

Reviewed By: djwatson

Differential Revision: D3825048

fbshipit-source-id: 1c97f14e1ea3f1b276d04bb12483d42372a0d186
parent 59ea1768
...@@ -114,7 +114,7 @@ class AsyncSSLSocketConnector: public AsyncSocket::ConnectCallback, ...@@ -114,7 +114,7 @@ class AsyncSSLSocketConnector: public AsyncSocket::ConnectCallback,
} }
void connectErr(const AsyncSocketException& ex) noexcept override { void connectErr(const AsyncSocketException& ex) noexcept override {
LOG(ERROR) << "TCP connect failed: " << ex.what(); VLOG(1) << "TCP connect failed: " << ex.what();
fail(ex); fail(ex);
delete this; delete this;
} }
...@@ -129,7 +129,7 @@ class AsyncSSLSocketConnector: public AsyncSocket::ConnectCallback, ...@@ -129,7 +129,7 @@ class AsyncSSLSocketConnector: public AsyncSocket::ConnectCallback,
void handshakeErr(AsyncSSLSocket* /* socket */, void handshakeErr(AsyncSSLSocket* /* socket */,
const AsyncSocketException& ex) noexcept override { const AsyncSocketException& ex) noexcept override {
LOG(ERROR) << "client handshakeErr: " << ex.what(); VLOG(1) << "client handshakeErr: " << ex.what();
fail(ex); fail(ex);
delete this; delete this;
} }
......
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