1
0
Fork 0

adjusted healthcheck

This commit is contained in:
scottashton 2014-05-06 14:53:58 +02:00
parent 4f4c5388d5
commit 37ff09579c
1 changed files with 1 additions and 1 deletions

View File

@ -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);