mirror of https://gitee.com/bigwinds/arangodb
Add more debugging output on log level info around Schmutz script.
This commit is contained in:
parent
864bd451cf
commit
6993ca32c7
|
@ -54,6 +54,7 @@ void DBServerAgencySync::work() {
|
||||||
DBServerAgencySyncResult DBServerAgencySync::execute() {
|
DBServerAgencySyncResult DBServerAgencySync::execute() {
|
||||||
// default to system database
|
// default to system database
|
||||||
|
|
||||||
|
LOG(INFO) << "DBServerAgencySync::execute starting";
|
||||||
DatabaseFeature* database =
|
DatabaseFeature* database =
|
||||||
ApplicationServer::getFeature<DatabaseFeature>("Database");
|
ApplicationServer::getFeature<DatabaseFeature>("Database");
|
||||||
|
|
||||||
|
@ -61,6 +62,7 @@ DBServerAgencySyncResult DBServerAgencySync::execute() {
|
||||||
|
|
||||||
DBServerAgencySyncResult result;
|
DBServerAgencySyncResult result;
|
||||||
if (vocbase == nullptr) {
|
if (vocbase == nullptr) {
|
||||||
|
LOG(INFO) << "DBServerAgencySync::execute no vocbase";
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,6 +75,7 @@ DBServerAgencySyncResult DBServerAgencySync::execute() {
|
||||||
V8Context* context = V8DealerFeature::DEALER->enterContext(vocbase, true);
|
V8Context* context = V8DealerFeature::DEALER->enterContext(vocbase, true);
|
||||||
|
|
||||||
if (context == nullptr) {
|
if (context == nullptr) {
|
||||||
|
LOG(INFO) << "DBServerAgencySync::execute no V8 context";
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,6 +154,7 @@ DBServerAgencySyncResult DBServerAgencySync::execute() {
|
||||||
<< "handlePlanChange returned a non-object";
|
<< "handlePlanChange returned a non-object";
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
LOG(INFO) << "DBServerAgencySync::execute back from JS";
|
||||||
// invalidate our local cache, even if an error occurred
|
// invalidate our local cache, even if an error occurred
|
||||||
clusterInfo->flush();
|
clusterInfo->flush();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
|
@ -1690,6 +1690,7 @@ var handlePlanChange = function (plan, current) {
|
||||||
current: current.Version
|
current: current.Version
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.info('handlePlanChange:', plan.Version, current.Version);
|
||||||
try {
|
try {
|
||||||
versions.success = handleChanges(plan, current);
|
versions.success = handleChanges(plan, current);
|
||||||
|
|
||||||
|
@ -1700,6 +1701,7 @@ var handlePlanChange = function (plan, current) {
|
||||||
console.error('plan change handling failed');
|
console.error('plan change handling failed');
|
||||||
versions.success = false;
|
versions.success = false;
|
||||||
}
|
}
|
||||||
|
console.info('handlePlanChange: done');
|
||||||
return versions;
|
return versions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue