From 521a1dba2bd94afc35e7ce6a85e69d28e4315bea Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Fri, 8 Jan 2010 02:48:08 +0000 Subject: [PATCH] add some NSLogs to help smoke out http://forum.transmissionbt.com/viewtopic.php?f=1&t=9105&start=105#p43232 --- macosx/InfoWindowController.m | 2 ++ macosx/Torrent.m | 3 +++ 2 files changed, 5 insertions(+) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 7d6310b17..54e40de74 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -1761,6 +1761,8 @@ typedef enum } } + NSLog(@"%@", removeIndexes); + NSAssert([removeIndexes count] > 0, @"Trying to remove no trackers."); if ([[NSUserDefaults standardUserDefaults] boolForKey: @"WarningRemoveTrackers"]) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 8dc02e52c..f76483af8 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -652,7 +652,10 @@ int trashDataFile(const char * filename) int newCount = 0; for (NSUInteger oldIndex = [indexes firstIndex]; oldIndex != NSNotFound; oldIndex = [indexes indexGreaterThanIndex: oldIndex]) + { + NSLog(@"oldIndex: %d %s", oldIndex, fInfo->trackers[oldIndex].announce); trackerStructs[newCount++] = fInfo->trackers[oldIndex]; + } const BOOL success = tr_torrentSetAnnounceList(fHandle, trackerStructs, newCount); NSAssert(success, @"Removing tracker addresses failed");