Ver código fonte

Better debug

Zachary Kotlarek 12 anos atrás
pai
commit
1ffdd8dee4
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      yt/subscribe.pl

+ 2 - 2
yt/subscribe.pl

@@ -490,7 +490,7 @@ sub findFiles($) {
 	close($fh);
 	close($fh);
 
 
 	if ($DEBUG) {
 	if ($DEBUG) {
-		print STDERR "\nFound " . scalar(keys(%files)) . " files:\n\t" . join(', ', keys(%files)) . "\n";
+		print STDERR 'Found ' . scalar(keys(%files)) . " local videos\n";
 		if ($DEBUG > 1) {
 		if ($DEBUG > 1) {
 			print STDERR prettyPrint(\%files, "\t") . "\n";
 			print STDERR prettyPrint(\%files, "\t") . "\n";
 		}
 		}
@@ -862,7 +862,7 @@ sub findVideos($) {
 	}
 	}
 
 
 	if ($DEBUG) {
 	if ($DEBUG) {
-		print STDERR "\nFound " . scalar(keys(%videos)) . ' videos for YouTube user ' . $user . ":\n\t" . join(', ', keys(%videos)) . "\n";
+		print STDERR 'Found ' . scalar(keys(%videos)) . " remote videos\n";
 		if ($DEBUG > 1) {
 		if ($DEBUG > 1) {
 			print STDERR prettyPrint(\%videos, "\t") . "\n";
 			print STDERR prettyPrint(\%videos, "\t") . "\n";
 		}
 		}