fix logger

This commit is contained in:
Iuri Matias 2018-07-07 22:00:42 +03:00
parent c70e583557
commit 3ddbe0ea3d
1 changed files with 3 additions and 4 deletions

View File

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