This is an automated email from the ASF dual-hosted git repository.
lizhanhui pushed a commit to branch v5.0-rc2
in repository https://gitbox.apache.org/repos/asf/rocketmq-client-cpp.git
The following commit(s) were added to refs/heads/v5.0-rc2 by this push:
new 0cf11de Log ARN on instance creation
0cf11de is described below
commit 0cf11de8f32fd08be9ff915aefd46778a380db21
Author: Li Zhanhui <[email protected]>
AuthorDate: Mon Aug 8 19:27:18 2022 +0800
Log ARN on instance creation
---
src/main/cpp/ons/ONSClientAbstract.cpp | 4 +++-
src/main/cpp/ons/include/AccessPoint.h | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/cpp/ons/ONSClientAbstract.cpp
b/src/main/cpp/ons/ONSClientAbstract.cpp
index efe04c1..0258a32 100644
--- a/src/main/cpp/ons/ONSClientAbstract.cpp
+++ b/src/main/cpp/ons/ONSClientAbstract.cpp
@@ -7,7 +7,9 @@ ONS_NAMESPACE_BEGIN
// TODO: set AccessKey and SecretKey here.
ONSClientAbstract::ONSClientAbstract(const ONSFactoryProperty&
factory_property)
- : factory_property_(factory_property),
access_point_(factory_property.getNameSrvAddr()) {}
+ : factory_property_(factory_property),
access_point_(factory_property.getNameSrvAddr()) {
+ SPDLOG_INFO("AbstractResourceNamespace={}",
access_point_.resourceNamespace());
+}
void ONSClientAbstract::start() {}
diff --git a/src/main/cpp/ons/include/AccessPoint.h
b/src/main/cpp/ons/include/AccessPoint.h
index 5e6b000..236cdd5 100644
--- a/src/main/cpp/ons/include/AccessPoint.h
+++ b/src/main/cpp/ons/include/AccessPoint.h
@@ -19,7 +19,7 @@ public:
SPDLOG_INFO("Resource namespace={}, name-server-address={}",
resourceNamespace(), nameServerAddress());
}
- operator bool() const;
+ explicit operator bool() const;
std::string resourceNamespace() const;