You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by gb...@apache.org on 2019/05/05 14:13:19 UTC

svn commit: r1858690 - in /spamassassin: branches/3.4/spamassassin.raw trunk/spamassassin.raw

Author: gbechis
Date: Sun May  5 14:13:19 2019
New Revision: 1858690

URL: http://svn.apache.org/viewvc?rev=1858690&view=rev
Log:
warn about "please rerun with debug enabled" only if debug is not enabled

Modified:
    spamassassin/branches/3.4/spamassassin.raw
    spamassassin/trunk/spamassassin.raw

Modified: spamassassin/branches/3.4/spamassassin.raw
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/spamassassin.raw?rev=1858690&r1=1858689&r2=1858690&view=diff
==============================================================================
--- spamassassin/branches/3.4/spamassassin.raw (original)
+++ spamassassin/branches/3.4/spamassassin.raw Sun May  5 14:13:19 2019
@@ -273,7 +273,7 @@ my $spamtest = new Mail::SpamAssassin(
 if ($opt{'lint'}) {
   $spamtest->debug_diagnostics();
   my $res = $spamtest->lint_rules();
-  warn "lint: $res issues detected, please rerun with debug enabled for more information\n" if ($res);
+  warn "lint: $res issues detected, please rerun with debug enabled for more information\n" if ($res and !$opt{'debug'});
   # make sure we notice any write errors while flushing output buffer
   close STDOUT  or die "error closing STDOUT: $!";
   close STDIN   or die "error closing STDIN: $!";

Modified: spamassassin/trunk/spamassassin.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/spamassassin.raw?rev=1858690&r1=1858689&r2=1858690&view=diff
==============================================================================
--- spamassassin/trunk/spamassassin.raw (original)
+++ spamassassin/trunk/spamassassin.raw Sun May  5 14:13:19 2019
@@ -275,7 +275,7 @@ my $spamtest = new Mail::SpamAssassin(
 if ($opt{'lint'}) {
   $spamtest->debug_diagnostics();
   my $res = $spamtest->lint_rules();
-  warn "lint: $res issues detected, please rerun with debug enabled for more information\n" if ($res);
+  warn "lint: $res issues detected, please rerun with debug enabled for more information\n" if ($res and !$opt{'debug'});
   # make sure we notice any write errors while flushing output buffer
   close STDOUT  or die "error closing STDOUT: $!";
   close STDIN   or die "error closing STDIN: $!";