mirror of https://gitee.com/bigwinds/arangodb
Better logging.
This commit is contained in:
parent
1885c77331
commit
84d7616cde
|
@ -85,7 +85,7 @@ static void raceForClusterBootstrap() {
|
||||||
b.add(VPackValue(arangodb::ServerState::instance()->getId()));
|
b.add(VPackValue(arangodb::ServerState::instance()->getId()));
|
||||||
result = agency.casValue("Bootstrap", b.slice(), false, 300, 15);
|
result = agency.casValue("Bootstrap", b.slice(), false, 300, 15);
|
||||||
if (!result.successful()) {
|
if (!result.successful()) {
|
||||||
LOG_TOPIC(TRACE, Logger::STARTUP) << "raceForClusterBootstrap: lost race";
|
LOG_TOPIC(INFO, Logger::STARTUP) << "raceForClusterBootstrap: lost race";
|
||||||
// Cannot get foot into the door, try again later:
|
// Cannot get foot into the door, try again later:
|
||||||
sleep(1);
|
sleep(1);
|
||||||
continue;
|
continue;
|
||||||
|
@ -101,12 +101,12 @@ static void raceForClusterBootstrap() {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_TOPIC(TRACE, Logger::STARTUP)
|
LOG_TOPIC(INFO, Logger::STARTUP)
|
||||||
<< "raceForClusterBootstrap: race won, we do the bootstrap";
|
<< "raceForClusterBootstrap: race won, we do the bootstrap";
|
||||||
auto vocbase = DatabaseFeature::DATABASE->vocbase();
|
auto vocbase = DatabaseFeature::DATABASE->vocbase();
|
||||||
V8DealerFeature::DEALER->loadJavascriptFiles(vocbase, "server/bootstrap/cluster-bootstrap.js", 0);
|
V8DealerFeature::DEALER->loadJavascriptFiles(vocbase, "server/bootstrap/cluster-bootstrap.js", 0);
|
||||||
|
|
||||||
LOG_TOPIC(TRACE, Logger::STARTUP)
|
LOG_TOPIC(INFO, Logger::STARTUP)
|
||||||
<< "raceForClusterBootstrap: bootstrap done";
|
<< "raceForClusterBootstrap: bootstrap done";
|
||||||
|
|
||||||
b.clear();
|
b.clear();
|
||||||
|
|
Loading…
Reference in New Issue