Permalink
Browse files

Comment out several noisy debug statements.

  • Loading branch information...
1 parent f62b4d3 commit 7290922898e494df40c170cf8b676abc8914c50f @AustinBlues committed Aug 15, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/rss_speed_reader.rb
@@ -234,7 +234,7 @@ def self.parse_body(reader, stack, channel_base)
libxml.each_value{|v| v.strip!}
- @@logger.debug "ITEM_BASE: '#{item_base}'." if @@logger
+# @@logger.debug "ITEM_BASE: '#{item_base}'." if @@logger
yield libxml
end
@@ -248,7 +248,7 @@ def self.parse_body(reader, stack, channel_base)
# Helper to select most desireable one among the links in a item, a
# heuristic
def self.resolve_links(links, base_url)
- @@logger.debug "LINKS: #{links.inspect}." if @@logger
+# @@logger.debug "LINKS: #{links.inspect}." if @@logger
max_score = -99
url = nil
links.reverse.each do |link|
@@ -273,15 +273,15 @@ def self.resolve_links(links, base_url)
when 'replies'
score -= 3
end
- @@logger.debug "SCORE(#{score}): #{link.inspect}." if @@logger
+# @@logger.debug "SCORE(#{score}): #{link.inspect}." if @@logger
if score > max_score
url = link[:href]
max_score = score
end
end
- @@logger.debug "URL: #{url.inspect}." if @@logger
- @@logger.debug "BASE_URL: #{base_url.inspect}." if @@logger
+# @@logger.debug "URL: #{url.inspect}." if @@logger
+# @@logger.debug "BASE_URL: #{base_url.inspect}." if @@logger
result = if url =~ %r{\Ahttps?://}
url
else
@@ -291,7 +291,7 @@ def self.resolve_links(links, base_url)
# compress any double slashes not in protocol
"#{base_url}#{url}".gsub(%r{[^:]//}){$&.slice(0, 2)}
end
- @@logger.debug "RESULT: '#{result}'." if @@logger
+# @@logger.debug "RESULT: '#{result}'." if @@logger
result
end
end

0 comments on commit 7290922

Please sign in to comment.