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

*last* fix to dbwriter heartbeat - issue #566

parent d53668e7
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,8 @@ logger.info("dbwriter starting up");
heartbeat.setup(app, function(cb) {
// ping the database to verify we're really healthy.
db.ping(function(e) {
cb(e === undefined);
if (e) logger.error("database ping error: " + e);
cb(!e);
});
});
......
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