From 604bf7abe2958f809586722072b36857b354cb97 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 7 Jul 2018 22:00:42 +0300 Subject: [PATCH] fix logger --- lib/modules/ipfs/index.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index cf637209..75dd9b7f 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -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'}); }); });