You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by ph...@apache.org on 2019/06/05 11:07:10 UTC
[nifi-minifi-cpp] 01/03: MINIFICPP-908 - Fix some logging issues
This is an automated email from the ASF dual-hosted git repository.
phrocker pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit 2ff7442dad764283122693f9cb3c0c53f0ba3024
Author: Arpad Boda <ab...@hortonworks.com>
AuthorDate: Tue Jun 4 18:16:57 2019 +0200
MINIFICPP-908 - Fix some logging issues
This closes #582.
Signed-off-by: Marc Parisi <ph...@apache.org>
---
libminifi/src/ThreadedSchedulingAgent.cpp | 2 +-
libminifi/src/sitetosite/RawSocketProtocol.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libminifi/src/ThreadedSchedulingAgent.cpp b/libminifi/src/ThreadedSchedulingAgent.cpp
index e2da4f6..88b39f3 100644
--- a/libminifi/src/ThreadedSchedulingAgent.cpp
+++ b/libminifi/src/ThreadedSchedulingAgent.cpp
@@ -63,7 +63,7 @@ void ThreadedSchedulingAgent::schedule(std::shared_ptr<core::Processor> processo
}
if (thread_pool_.isRunning(processor->getUUIDStr())) {
- logger_->log_warn("Can not schedule threads for processor %s because there are existing threads running");
+ logger_->log_warn("Can not schedule threads for processor %s because there are existing threads running", processor->getName());
return;
}
diff --git a/libminifi/src/sitetosite/RawSocketProtocol.cpp b/libminifi/src/sitetosite/RawSocketProtocol.cpp
index 316397a..008bf91 100644
--- a/libminifi/src/sitetosite/RawSocketProtocol.cpp
+++ b/libminifi/src/sitetosite/RawSocketProtocol.cpp
@@ -384,7 +384,7 @@ bool RawSiteToSiteClient::getPeerList(std::vector<PeerStatus> &peers) {
}
PeerStatus status(std::make_shared<Peer>(port_id_, host, port, secure), count, true);
peers.push_back(std::move(status));
- logging::LOG_TRACE(logger_) << "Site2Site Peer host " << host << " port " << port << " Secure " << secure;
+ logging::LOG_TRACE(logger_) << "Site2Site Peer host " << host << " port " << port << " Secure " << std::to_string(secure);
}
tearDown();