mirror of https://gitee.com/bigwinds/arangodb
include console
This commit is contained in:
parent
4a731a0c9e
commit
334cd51e6f
|
@ -28,6 +28,8 @@
|
||||||
/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany
|
/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
var console = require("console");
|
||||||
|
|
||||||
var isCluster = function () {
|
var isCluster = function () {
|
||||||
return (typeof ArangoServerState !== "undefined" &&
|
return (typeof ArangoServerState !== "undefined" &&
|
||||||
ArangoServerState.initialised());
|
ArangoServerState.initialised());
|
||||||
|
@ -71,10 +73,10 @@ var handlePlanChange = function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
require("internal").print("handling a plan change");
|
console.info("%s", "plan change handling successful");
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
require("internal").print("plan change handling failed");
|
console.error("%s", "plan change handling failed");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue