You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2009/08/18 18:15:51 UTC
svn commit: r805476 - /spamassassin/trunk/t/debug.t
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;
}
}