put debugging info in a debugging level

This commit is contained in:
Ward Wouts 2003-04-28 20:30:18 +00:00
parent b2f90f35d8
commit c0e4e492fd

View file

@ -1,6 +1,6 @@
################################# #################################
# #
# $Dwarf: article.rb,v 1.63 2003/04/24 07:26:41 ward Exp $ # $Dwarf: article.rb,v 1.64 2003/04/24 07:43:21 ward Exp $
# $Source$ # $Source$
# #
# article.rb # article.rb
@ -93,9 +93,11 @@ def get_articles(cachedir=false)
if first <= last if first <= last
@connections[server]["first"] = first ? first : 0 @connections[server]["first"] = first ? first : 0
@connections[server]["last"] = last ? last : 0 @connections[server]["last"] = last ? last : 0
print " Server: #{server}\n" if Debuglevel > 0
print " First: #{first}\n" print " Server: #{server}\n"
print " Last: #{last}\n" print " First: #{first}\n"
print " Last: #{last}\n"
end
# clean up old newsrc entries # clean up old newsrc entries
if @connections[server]["first"].to_i > 0 if @connections[server]["first"].to_i > 0
@connections[server]["newsrc"].unmark_range(@group, 0, (@connections[server]["first"].to_i-1).to_s) @connections[server]["newsrc"].unmark_range(@group, 0, (@connections[server]["first"].to_i-1).to_s)