Add more logging
This commit is contained in:
@@ -54,6 +54,7 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
t.deleteOnceDone.Remove(fixerID)
|
||||
return false
|
||||
})
|
||||
t.log.Debugf("Fixers left: %d", t.fixers.Count())
|
||||
// ensure delete
|
||||
infoCache, _ := t.DirectoryMap.Get(INT_INFO_CACHE)
|
||||
t.deleteOnceDone.Each(func(fixerID string) bool {
|
||||
@@ -67,6 +68,7 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
infoCache.Remove(fixerID)
|
||||
return false
|
||||
})
|
||||
t.log.Debugf("Delete once done left: %d", t.deleteOnceDone.Cardinality())
|
||||
|
||||
newlyFetchedKeys := mapset.NewSet[string]()
|
||||
noInfoCount := 0
|
||||
@@ -79,6 +81,7 @@ func (t *TorrentManager) refreshTorrents() []string {
|
||||
if !info.AnyInProgress() {
|
||||
newlyFetchedKeys.Add(accessKey)
|
||||
}
|
||||
|
||||
if torrent, exists := allTorrents.Get(accessKey); !exists {
|
||||
allTorrents.Set(accessKey, info)
|
||||
} else if !info.DownloadedIDs.Difference(torrent.DownloadedIDs).IsEmpty() {
|
||||
|
||||
Reference in New Issue
Block a user