warn user when IPFS comes back online
This commit is contained in:
parent
d32d5f50bd
commit
4106531bd7
|
@ -190,6 +190,10 @@ class Engine {
|
||||||
let host = _options.host || storageConfig.host;
|
let host = _options.host || storageConfig.host;
|
||||||
let port = _options.port || storageConfig.port;
|
let port = _options.port || storageConfig.port;
|
||||||
|
|
||||||
|
self.events.on('check:backOnline:IPFS', function () {
|
||||||
|
self.logger.info('IPFS node detected..');
|
||||||
|
});
|
||||||
|
|
||||||
self.servicesMonitor.addCheck('IPFS', function (cb) {
|
self.servicesMonitor.addCheck('IPFS', function (cb) {
|
||||||
utils.checkIsAvailable('http://' + host + ':' + port, function (available) {
|
utils.checkIsAvailable('http://' + host + ':' + port, function (available) {
|
||||||
if (available) {
|
if (available) {
|
||||||
|
|
Loading…
Reference in New Issue