Commit 17468b65 authored by Yair Gottdenker's avatar Yair Gottdenker Committed by Facebook GitHub Bot

Adding logs to connect error/success

Summary:
Small change - adding  logs to connect error/success and eliminating the unnecessary ones.

(Note: this ignores all push blocking failures!)

Reviewed By: yfeldblum

Differential Revision: D25481273

fbshipit-source-id: 437942803bc895bba2eaa36e5eaf104503012d12
parent f07f33e5
...@@ -2983,6 +2983,8 @@ void AsyncSocket::invalidState(ErrMessageCallback* callback) { ...@@ -2983,6 +2983,8 @@ void AsyncSocket::invalidState(ErrMessageCallback* callback) {
} }
void AsyncSocket::invokeConnectErr(const AsyncSocketException& ex) { void AsyncSocket::invokeConnectErr(const AsyncSocketException& ex) {
VLOG(5) << "AsyncSocket(this=" << this << ", fd=" << fd_
<< "): connect err invoked with ex: " << ex;
connectEndTime_ = std::chrono::steady_clock::now(); connectEndTime_ = std::chrono::steady_clock::now();
if (connectCallback_) { if (connectCallback_) {
ConnectCallback* callback = connectCallback_; ConnectCallback* callback = connectCallback_;
...@@ -2992,6 +2994,8 @@ void AsyncSocket::invokeConnectErr(const AsyncSocketException& ex) { ...@@ -2992,6 +2994,8 @@ void AsyncSocket::invokeConnectErr(const AsyncSocketException& ex) {
} }
void AsyncSocket::invokeConnectSuccess() { void AsyncSocket::invokeConnectSuccess() {
VLOG(5) << "AsyncSocket(this=" << this << ", fd=" << fd_
<< "): connect success invoked";
connectEndTime_ = std::chrono::steady_clock::now(); connectEndTime_ = std::chrono::steady_clock::now();
for (const auto& cb : lifecycleObservers_) { for (const auto& cb : lifecycleObservers_) {
cb->connect(this); cb->connect(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