mirror of https://gitee.com/bigwinds/arangodb
adjusted healthcheck
This commit is contained in:
parent
4f4c5388d5
commit
37ff09579c
|
@ -174,7 +174,7 @@
|
|||
controller.get("/healthcheck", function(req, res) {
|
||||
var out = getStarter().isHealthy();
|
||||
var stf = JSON.stringify(out);
|
||||
if (out.error || stf.indexOf("NOT-FOUND") !== -1) {
|
||||
if (out.error) {
|
||||
require("console").log("Cluster HealthCheck Error:", out.error);
|
||||
require("console").log("Cluster HealthCheck Result:", stf);
|
||||
res.json(false);
|
||||
|
|
Loading…
Reference in New Issue