дебаг

This commit is contained in:
Alexey Kasyanchuk
2017-07-08 21:38:45 +03:00
parent bb89191b8e
commit 9468159885
6 changed files with 18 additions and 11 deletions

View File

@ -506,7 +506,7 @@ const updateTorrentTrackers = (hash) => {
}
client.on('complete', function (metadata, infohash, rinfo) {
console.log('writing torrent to db');
console.log('writing torrent', metadata.info.name, 'to database');
const hash = infohash.toString('hex');
let size = metadata.info.length ? metadata.info.length : 0;
let filesCount = 1;