aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-05-14 05:42:39 +0800
committerjoe <joe@FreeBSD.org>2001-05-14 05:42:39 +0800
commit3cd89266a488c7a3483ab1adb8501d9148bde136 (patch)
treecc284815493cf6236138945c80fb324283585189
parent08033c056bc434f22eb84dc6aa57c0bb1def174c (diff)
downloadfreebsd-ports-gnome-3cd89266a488c7a3483ab1adb8501d9148bde136.tar.gz
freebsd-ports-gnome-3cd89266a488c7a3483ab1adb8501d9148bde136.tar.zst
freebsd-ports-gnome-3cd89266a488c7a3483ab1adb8501d9148bde136.zip
Remove a number of unnecessary warnings that occured whilst parsing
the log message.
-rwxr-xr-xCVSROOT/logcheck15
1 files changed, 9 insertions, 6 deletions
diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck
index 590972c57e90..ecb8d4cbeb35 100755
--- a/CVSROOT/logcheck
+++ b/CVSROOT/logcheck
@@ -77,13 +77,13 @@ while ($j >= 0 and my $header = $log_in[$j]) {
my $value = $2;
my $pattern = $HEADERS{$header};
- # Warn and ignore unrecognised headers.
+ # Ignore unrecognised headers.
unless (defined($pattern)) {
- print "Warning: unknown template header: $header\n";
+ ### print "Warning: unknown template header: $header\n";
next;
}
- # Skip the header if it's blank.
+ # Filter out the template header if it's blank.
unless ($value) {
splice(@log_in, $j + 1, 1);
next;
@@ -97,9 +97,12 @@ while ($j >= 0 and my $header = $log_in[$j]) {
}
} else {
- ## print "Error: malformed line in template headers: $header\n";
- ## ++$error;
- print "Warning: malformed line in template headers: $header\n";
+ ### XXX
+ # We're here because we saw a line that didn't match
+ # a template header (no ':'). This could be a continuation
+ # line from the previous header, or the log message proper.
+ # We don't know, so run the risk of checking the last paragraph
+ # of the log message for headers.
next;
}
}