From: Denis Samoylov Date: Thu, 8 Sep 2016 20:50:13 +0000 (-0700) Subject: move AsyncSSLSocket logging level for errors to vlog X-Git-Tag: v2016.09.12.00~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f496210227b343d7e4aa39d64bbb8df93f062909;p=folly.git 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 --- diff --git a/folly/io/async/AsyncSSLSocket.cpp b/folly/io/async/AsyncSSLSocket.cpp index 05553068..a7167989 100644 --- a/folly/io/async/AsyncSSLSocket.cpp +++ b/folly/io/async/AsyncSSLSocket.cpp @@ -114,7 +114,7 @@ class AsyncSSLSocketConnector: public AsyncSocket::ConnectCallback, } void connectErr(const AsyncSocketException& ex) noexcept override { - LOG(ERROR) << "TCP connect failed: " << ex.what(); + VLOG(1) << "TCP connect failed: " << ex.what(); fail(ex); delete this; } @@ -129,7 +129,7 @@ class AsyncSSLSocketConnector: public AsyncSocket::ConnectCallback, void handshakeErr(AsyncSSLSocket* /* socket */, const AsyncSocketException& ex) noexcept override { - LOG(ERROR) << "client handshakeErr: " << ex.what(); + VLOG(1) << "client handshakeErr: " << ex.what(); fail(ex); delete this; }