浏览代码

Less warnings

Zachary Kotlarek 8 年之前
父节点
当前提交
56ff20aa74
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  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;