Add completed download log

This commit is contained in:
Tony Blyler 2016-05-13 19:28:03 -04:00
parent cab6926338
commit 2110148ee4
No known key found for this signature in database
GPG key ID: 25C9D3A655D1A65C

View file

@ -307,6 +307,8 @@ func (q *Queue) downloadTorrents(torrents []rtorrent.Torrent) {
} }
} }
q.logger.Printf("Successfully downloaded '%s' (%s)", torrent.Name, torrentFilePath)
q.lock.RUnlock() q.lock.RUnlock()
q.lock.Lock() q.lock.Lock()
delete(q.downloadQueue, torrent.Hash) delete(q.downloadQueue, torrent.Hash)