mirror of https://github.com/Icinga/icinga2.git
jsonrpc: Disable debug output.
This commit is contained in:
parent
754dbfb8ef
commit
782ff8b13c
|
@ -34,7 +34,7 @@ using namespace icinga;
|
||||||
void JsonRpc::SendMessage(const Stream::Ptr& stream, const Dictionary::Ptr& message)
|
void JsonRpc::SendMessage(const Stream::Ptr& stream, const Dictionary::Ptr& message)
|
||||||
{
|
{
|
||||||
String json = Value(message).Serialize();
|
String json = Value(message).Serialize();
|
||||||
std::cerr << ">> " << json << std::endl;
|
// std::cerr << ">> " << json << std::endl;
|
||||||
NetString::WriteStringToStream(stream, json);
|
NetString::WriteStringToStream(stream, json);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ Dictionary::Ptr JsonRpc::ReadMessage(const Stream::Ptr& stream)
|
||||||
if (!NetString::ReadStringFromStream(stream, &jsonString))
|
if (!NetString::ReadStringFromStream(stream, &jsonString))
|
||||||
BOOST_THROW_EXCEPTION(std::runtime_error("ReadStringFromStream signalled EOF."));
|
BOOST_THROW_EXCEPTION(std::runtime_error("ReadStringFromStream signalled EOF."));
|
||||||
|
|
||||||
std::cerr << "<< " << jsonString << std::endl;
|
// std::cerr << "<< " << jsonString << std::endl;
|
||||||
Value value = Value::Deserialize(jsonString);
|
Value value = Value::Deserialize(jsonString);
|
||||||
|
|
||||||
if (!value.IsObjectType<Dictionary>()) {
|
if (!value.IsObjectType<Dictionary>()) {
|
||||||
|
|
Loading…
Reference in New Issue