Parcourir la source

Less warnings

Zachary Kotlarek il y a 8 ans
Parent
commit
56ff20aa74
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      yt/subscribe.pl

+ 1 - 1
yt/subscribe.pl

@@ -791,8 +791,8 @@ sub getSubscriptions($) {
 				|| ref($item->{'snippet'}->{'resourceId'}) ne 'HASH'
 				|| ref($item->{'snippet'}->{'resourceId'}) ne 'HASH'
 				|| !exists($item->{'snippet'}->{'resourceId'}->{'channelId'}))
 				|| !exists($item->{'snippet'}->{'resourceId'}->{'channelId'}))
 			{
 			{
-				warn($NAME . ": Skipping invalid subscription\n");
 				if ($DEBUG > 2) {
 				if ($DEBUG > 2) {
+					warn($NAME . ": Skipping invalid subscription\n");
 					print STDERR prettyPrint($item, "\t") . "\n";
 					print STDERR prettyPrint($item, "\t") . "\n";
 				}
 				}
 				next;
 				next;