Skip to content

Conversation

@hwc0919
Copy link
Collaborator

@hwc0919 hwc0919 commented Aug 6, 2024

No description provided.

@hwc0919
Copy link
Collaborator Author

hwc0919 commented Aug 6, 2024

Other places use LOG_DEBUG.
It causes some false alarms in my application, so I want to make a change.

auto thisPtr = weakPtr.lock();
if (!thisPtr)
{
LOG_DEBUG << "Connection is closed,give up sending";
return false;
}
if (thisPtr->status_ != ConnStatus::Connected)
{
LOG_DEBUG << "Connection is not connected,give up sending";
return false;
}

@an-tao an-tao merged commit 65f2455 into an-tao:master Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants