Zachary Kotlarek před 9 roky
rodič
revize
62578ded45
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      findTorrent.pl

+ 3 - 3
findTorrent.pl

@@ -143,7 +143,7 @@ if ($CONF_FILE && -r $CONF_FILE) {
 			$val =~ s/^\s+//;
 			$val =~ s/\s+$//;
 			$CONFIG{$key} = $val;
-			if ($DEBUG) {
+			if ($DEBUG > 1) {
 				print STDERR 'Adding config: ' . $key . ' => ' . $val . "\n";
 			}
 		} else {
@@ -652,7 +652,7 @@ foreach my $url (@urls) {
 	}
 
 	# Save the content, discriminating by data type
-	if ($DEBUG) {
+	if ($DEBUG > 1) {
 		print STDERR 'Fetched ' . length($content) . " bytes\n";
 	}
 	if ($content =~ /^\s*{/) {
@@ -1861,7 +1861,7 @@ sub findProxy($$) {
 
 sub fetch($;$$) {
 	my ($url, $file, $nocheck) = @_;
-	if ($DEBUG) {
+	if ($DEBUG > 1) {
 		print STDERR 'Fetch: ' . $url . "\n";
 	}