warn user when IPFS comes back online

This commit is contained in:
Iuri Matias 2017-12-13 18:15:59 -05:00
parent d32d5f50bd
commit 4106531bd7
1 changed files with 4 additions and 0 deletions

View File

@ -190,6 +190,10 @@ class Engine {
let host = _options.host || storageConfig.host;
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) {
utils.checkIsAvailable('http://' + host + ':' + port, function (available) {
if (available) {