gatherstats: Don't die on parsing errors.

Just warn if host or client can't be
identified.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2025-05-31 00:01:57 +02:00
parent 39e845d552
commit 23a28815b2

View file

@ -339,7 +339,7 @@ sub HostStats {
$Postings{$Host}++;
$Postings{'ALL'}++;
} else {
&Bleat(2,sprintf("%s FAILED", $Header{'message-id'})) if !$Host;
&Bleat(1,sprintf("%s FAILED", $Header{'message-id'})) if !$Host;
}
printf("%s: %s\n", $Header{'message-id'}, $Host) if ($MID or $Debug && $Debug >1);
@ -487,7 +487,7 @@ sub ClientStats {
version => $Version);
push @Clients, { %UserAgent };
} else {
&Bleat(2,sprintf("%s FAILED", $Header{'message-id'})) if !@Clients;
&Bleat(1,sprintf("%s FAILED", $Header{'message-id'})) if !@Clients;
}
}
}