1
0
Fork 0

Better logging.

This commit is contained in:
Max Neunhoeffer 2016-04-29 14:45:27 +02:00
parent bf05db339f
commit 017d4a56a7
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,6 @@ void HeartbeatThread::runDBServer() {
bool wasNotified;
{
CONDITION_LOCKER(locker, _condition);
LOG(INFO) << _wasNotified;
wasNotified = _wasNotified;
if (!wasNotified) {
locker.wait(static_cast<uint64_t>(remain * 1000000.0));

View File

@ -74,7 +74,7 @@ static void raceForClusterBootstrap() {
<< "raceForClusterBootstrap: bootstrap already done";
return;
}
LOG_TOPIC(TRACE, Logger::STARTUP)
LOG_TOPIC(INFO, Logger::STARTUP)
<< "raceForClusterBootstrap: somebody else does the bootstrap";
sleep(1);
continue;
@ -85,7 +85,8 @@ static void raceForClusterBootstrap() {
b.add(VPackValue(arangodb::ServerState::instance()->getId()));
result = agency.casValue("Bootstrap", b.slice(), false, 300, 15);
if (!result.successful()) {
LOG_TOPIC(INFO, Logger::STARTUP) << "raceForClusterBootstrap: lost race";
LOG_TOPIC(INFO, Logger::STARTUP)
<< "raceForClusterBootstrap: lost race, somebody else will bootstrap";
// Cannot get foot into the door, try again later:
sleep(1);
continue;