Sfoglia il codice sorgente

Whine less when ignoring bad downloads

Zachary Kotlarek 12 anni fa
parent
commit
fab665d1f7
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      transmission.pl

+ 3 - 1
transmission.pl

@@ -186,7 +186,9 @@ foreach my $tor (@{$torrents}) {
 				print STDERR 'Torrent stored successfully: ' . $tor->{'name'} . "\n";
 			}
 		} elsif (defined($result) && $result == -1) {
-			print STDERR 'Deleting bad torrent: ' . $tor->{'name'} . "\n";
+			if ($DEBUG) {
+				print STDERR 'Deleting bad torrent: ' . $tor->{'name'} . "\n";
+			}
 			last;
 		} else {
 			print STDERR 'Error storing file "' . basename($file) . '" from torrent: ' . $tor->{'name'} . "\n";