From d7650d5e746cf8eb0daaa9c47512f7ce61cef631 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Fri, 30 Mar 2018 22:56:50 +0300 Subject: [PATCH] less debug of replication --- src/background/api.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/background/api.js b/src/background/api.js index 0b18929..e19cf5a 100644 --- a/src/background/api.js +++ b/src/background/api.js @@ -170,9 +170,7 @@ module.exports = ({ }); const getReplicationTorrents = (nextTimeout = 5000) => { - console.log('call replication') let gotTorrents = 0 - p2p.emit('randomTorrents', null, (torrents) => { if(!torrents || torrents.length == 0) return @@ -180,7 +178,7 @@ module.exports = ({ gotTorrents += torrents.length torrents.forEach((torrent) => { - console.log('replicate remote torrent', torrent) + console.log('replicate remote torrent', torrent && torrent.name) insertTorrentToDB(torrent) }) })