1
0
Fork 0

agency warnings spamming

This commit is contained in:
Kaveh Vahedipour 2016-09-13 09:16:47 +02:00
parent 97ce16d88b
commit b222c2306e
3 changed files with 2 additions and 5 deletions

View File

@ -285,9 +285,6 @@ std::vector<bool> Store::apply(std::vector<VPackSlice> const& queries,
auto headerFields =
std::make_unique<std::unordered_map<std::string, std::string>>();
LOG_TOPIC(WARN, Logger::AGENCY) << body.toJson();
LOG_TOPIC(DEBUG, Logger::AGENCY) << endpoint.substr(6) + path;
arangodb::ClusterComm::instance()->asyncRequest(
"1", 1, endpoint, rest::RequestType::POST, path,
std::make_shared<std::string>(body.toString()), headerFields,

View File

@ -30,8 +30,7 @@ StoreCallback::StoreCallback() {}
bool StoreCallback::operator()(arangodb::ClusterCommResult* res) {
if (res->status != CL_COMM_SENT) {
LOG_TOPIC(WARN, Logger::AGENCY)
LOG_TOPIC(DEBUG, Logger::AGENCY)
<< res->endpoint << "(" << res->status << ", " << res->errorMessage << ")";
}
return true;

View File

@ -1200,6 +1200,7 @@ int ClusterInfo::dropCollectionCoordinator(std::string const& databaseName,
CONDITION_LOCKER(locker, agencyCallback->_cv);
while (true) {
if (dbServerResult >= 0) {
return dbServerResult;
}