fix logger

This commit is contained in:
Iuri Matias 2018-07-07 22:00:42 +03:00 committed by Pascal Precht
parent 1564a2c511
commit bd13626d49
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 3 additions and 4 deletions

View File

@ -52,7 +52,6 @@ class IPFS {
}
setServiceCheck() {
console.dir("setServiceCheck");
let self = this;
self.events.on('check:backOnline:IPFS', function () {
@ -66,14 +65,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'});
});
});