From 2c17affa4ae1aeee68c722f4530bd9570acef6d1 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 17 Sep 2013 14:38:27 +0200 Subject: [PATCH] Remove debug code --- components/cluster/clustercomponent.cpp | 4 ++-- components/cluster/jsonrpc.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/cluster/clustercomponent.cpp b/components/cluster/clustercomponent.cpp index 4fc1fbfe1..bec0c39b7 100644 --- a/components/cluster/clustercomponent.cpp +++ b/components/cluster/clustercomponent.cpp @@ -302,7 +302,7 @@ void ClusterComponent::RelayMessage(const Endpoint::Ptr& source, const Dictionar continue; if (secobj && !secobj->HasPrivileges(endpoint->GetName(), privs)) { - Log(LogWarning, "cluster", "Not sending message to endpoint '" + endpoint->GetName() + "': Insufficient privileges."); + Log(LogDebug, "cluster", "Not sending message to endpoint '" + endpoint->GetName() + "': Insufficient privileges."); continue; } @@ -462,7 +462,7 @@ void ClusterComponent::ReplayLog(const Endpoint::Ptr& endpoint, const Stream::Pt } if (secobj && !secobj->HasPrivileges(endpoint->GetName(), privs)) { - Log(LogWarning, "cluster", "Not replaying message: Insufficient privileges."); + Log(LogDebug, "cluster", "Not replaying message to endpoint '" + endpoint->GetName() + "': Insufficient privileges."); continue; } diff --git a/components/cluster/jsonrpc.cpp b/components/cluster/jsonrpc.cpp index edd84d01b..a785cd65c 100644 --- a/components/cluster/jsonrpc.cpp +++ b/components/cluster/jsonrpc.cpp @@ -34,7 +34,7 @@ using namespace icinga; void JsonRpc::SendMessage(const Stream::Ptr& stream, const Dictionary::Ptr& message) { String json = Value(message).Serialize(); - std::cerr << ">> " << json << std::endl; +// std::cerr << ">> " << json << std::endl; NetString::WriteStringToStream(stream, json); } @@ -44,7 +44,7 @@ Dictionary::Ptr JsonRpc::ReadMessage(const Stream::Ptr& stream) if (!NetString::ReadStringFromStream(stream, &jsonString)) BOOST_THROW_EXCEPTION(std::runtime_error("ReadStringFromStream signalled EOF.")); - std::cerr << "<< " << jsonString << std::endl; +// std::cerr << "<< " << jsonString << std::endl; Value value = Value::Deserialize(jsonString); if (!value.IsObjectType()) {