Ver Fonte

Less warnings

Zachary Kotlarek há 8 anos atrás
pai
commit
56ff20aa74
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      yt/subscribe.pl

+ 1 - 1
yt/subscribe.pl

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