Skip to content
Snippets Groups Projects
Commit 210054b8 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

fix error introduced to dbwriter heartbeat - inverted health value - issue #566

parent 18f02d10
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,9 @@ logger.info("dbwriter starting up");
// This is in front of logging on purpose. see issue #537
heartbeat.setup(app, function(cb) {
// ping the database to verify we're really healthy.
db.ping(cb);
db.ping(function(e) {
cb(e === undefined);
});
});
// logging! all requests other than __heartbeat__ are logged
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment