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;
}
}
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;
}
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);
}
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<Dictionary>()) {