put debugging info in a debugging level
This commit is contained in:
parent
b2f90f35d8
commit
c0e4e492fd
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||||
|
if Debuglevel > 0
|
||||||
print " Server: #{server}\n"
|
print " Server: #{server}\n"
|
||||||
print " First: #{first}\n"
|
print " First: #{first}\n"
|
||||||
print " Last: #{last}\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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue