shibd commented on code in PR #156:
URL: https://github.com/apache/pulsar-client-cpp/pull/156#discussion_r1058106366
##########
lib/ClientConnection.cc:
##########
@@ -1596,7 +1596,11 @@ void ClientConnection::close(Result result) {
}
lock.unlock();
- LOG_INFO(cnxString_ << "Connection closed with " << result);
+ if (result != ResultDisconnected) {
+ LOG_ERROR(cnxString_ << "Connection closed with " << result);
Review Comment:
As you provided the example, The call `close` may have been an unexpected
behavior, so we printed the error log before the call. But inside the `close`
method, the execution close method behaves as expected and is closed correctly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]