fix logger

This commit is contained in:
Iuri Matias 2018-07-07 22:00:42 +03:00
parent 2ae51b4f82
commit 604bf7abe2

View File

@ -50,7 +50,6 @@ class IPFS {
}
setServiceCheck() {
console.dir("setServiceCheck");
let self = this;
self.events.on('check:backOnline:IPFS', function () {
@ -64,14 +63,14 @@ class IPFS {
self.events.request("services:register", 'IPFS', function (cb) {
self._checkService((err, body) => {
if (err) {
self.logger.info("IPFS unavailable");
self.logger.trace("IPFS unavailable");
return cb({name: "IPFS ", status: 'off'});
}
if (body.Version) {
self.logger.info("IPFS available");
self.logger.trace("IPFS available");
return cb({name: ("IPFS " + body.Version), status: 'on'});
}
self.logger.info("IPFS available");
self.logger.trace("IPFS available");
return cb({name: "IPFS ", status: 'on'});
});
});