mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 16:46:38 +00:00
tolerate lack of addCheck which means is not running in dashboard mode
This commit is contained in:
parent
8907753dec
commit
fffde9d4b6
@ -50,7 +50,11 @@ class IPFS {
|
|||||||
self.logger.info('IPFS node is offline..');
|
self.logger.info('IPFS node is offline..');
|
||||||
});
|
});
|
||||||
|
|
||||||
this.addCheck('IPFS', function (cb) {
|
if (!self.addCheck) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
self.addCheck('IPFS', function (cb) {
|
||||||
self.logger.trace("Checking IPFS version...");
|
self.logger.trace("Checking IPFS version...");
|
||||||
utils.httpGetJson('http://' + self.host + ':' + self.port + '/api/v0/version', function (err, body) {
|
utils.httpGetJson('http://' + self.host + ':' + self.port + '/api/v0/version', function (err, body) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user