From: Gunnar Beutner Date: Mon, 2 Sep 2013 13:51:56 +0000 (+0200) Subject: jsonrpc: Disable debug output. X-Git-Tag: v0.0.3~619 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=782ff8b13c2b66cc88939fe7cd185644e8560934;p=icinga2 jsonrpc: Disable debug output. --- 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()) {