This is an automated email from the ASF dual-hosted git repository.
technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.11 by this push:
new 6c4b9bf95a5 [improve][c++] Add producerId to the log of closed
producer (#17079)
6c4b9bf95a5 is described below
commit 6c4b9bf95a5a32379749cbb3c049c105d21cf46a
Author: Zike Yang <[email protected]>
AuthorDate: Sun Aug 14 07:24:53 2022 +0800
[improve][c++] Add producerId to the log of closed producer (#17079)
---
pulsar-client-cpp/lib/ProducerImpl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-client-cpp/lib/ProducerImpl.cc
b/pulsar-client-cpp/lib/ProducerImpl.cc
index 229f7375c5e..9a6a990039b 100644
--- a/pulsar-client-cpp/lib/ProducerImpl.cc
+++ b/pulsar-client-cpp/lib/ProducerImpl.cc
@@ -705,7 +705,7 @@ void ProducerImpl::handleClose(Result result,
ResultCallback callback, ProducerI
if (result == ResultOk) {
Lock lock(mutex_);
state_ = Closed;
- LOG_INFO(getName() << "Closed producer");
+ LOG_INFO(getName() << "Closed producer " << producerId_);
ClientConnectionPtr cnx = getCnx().lock();
if (cnx) {
cnx->removeProducer(producerId_);