From f496210227b343d7e4aa39d64bbb8df93f062909 Mon Sep 17 00:00:00 2001 From: Denis Samoylov Date: Thu, 8 Sep 2016 13:50:13 -0700 Subject: [PATCH] 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 --- folly/io/async/AsyncSSLSocket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.34.1