1
0
Fork 0

include console

This commit is contained in:
Jan Steemann 2014-01-16 15:01:07 +01:00
parent 4a731a0c9e
commit 334cd51e6f
1 changed files with 4 additions and 2 deletions

View File

@ -28,6 +28,8 @@
/// @author Copyright 2012, triAGENS GmbH, Cologne, Germany
////////////////////////////////////////////////////////////////////////////////
var console = require("console");
var isCluster = function () {
return (typeof ArangoServerState !== "undefined" &&
ArangoServerState.initialised());
@ -71,10 +73,10 @@ var handlePlanChange = function () {
}
try {
require("internal").print("handling a plan change");
console.info("%s", "plan change handling successful");
}
catch (err) {
require("internal").print("plan change handling failed");
console.error("%s", "plan change handling failed");
}
};