From c0e4e492fd4aff5917187aa1dd3c16ba1546cc00 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Mon, 28 Apr 2003 20:30:18 +0000 Subject: [PATCH] put debugging info in a debugging level --- trunk/ripnews/news/article.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/trunk/ripnews/news/article.rb b/trunk/ripnews/news/article.rb index dcdca33..7e3820a 100644 --- a/trunk/ripnews/news/article.rb +++ b/trunk/ripnews/news/article.rb @@ -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$ # # article.rb @@ -93,9 +93,11 @@ def get_articles(cachedir=false) if first <= last @connections[server]["first"] = first ? first : 0 @connections[server]["last"] = last ? last : 0 - print " Server: #{server}\n" - print " First: #{first}\n" - print " Last: #{last}\n" + if Debuglevel > 0 + print " Server: #{server}\n" + print " First: #{first}\n" + print " Last: #{last}\n" + end # clean up old newsrc entries if @connections[server]["first"].to_i > 0 @connections[server]["newsrc"].unmark_range(@group, 0, (@connections[server]["first"].to_i-1).to_s)