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:
parent
39e845d552
commit
06bcdfb2be
|
@ -339,7 +339,7 @@ sub HostStats {
|
||||||
$Postings{$Host}++;
|
$Postings{$Host}++;
|
||||||
$Postings{'ALL'}++;
|
$Postings{'ALL'}++;
|
||||||
} else {
|
} 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);
|
printf("%s: %s\n", $Header{'message-id'}, $Host) if ($MID or $Debug && $Debug >1);
|
||||||
|
@ -487,7 +487,7 @@ sub ClientStats {
|
||||||
version => $Version);
|
version => $Version);
|
||||||
push @Clients, { %UserAgent };
|
push @Clients, { %UserAgent };
|
||||||
} else {
|
} else {
|
||||||
&Bleat(2,sprintf("%s FAILED", $Header{'message-id'})) if !@Clients;
|
&Bleat(1,sprintf("%s FAILED", $Header{'message-id'})) if !@Clients;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,7 @@ NewsStats 0.4.0 (unreleased)
|
||||||
* Move cliservstats to hoststats.
|
* Move cliservstats to hoststats.
|
||||||
* Add clientstats (for clients).
|
* Add clientstats (for clients).
|
||||||
* Add ClientStats to postingstats.
|
* Add ClientStats to postingstats.
|
||||||
|
* gatherstats: Don't die on parsing errors.
|
||||||
|
|
||||||
NewsStats 0.3.0 (2025-05-18)
|
NewsStats 0.3.0 (2025-05-18)
|
||||||
* Extract GroupStats (in gatherstats) to subroutine.
|
* Extract GroupStats (in gatherstats) to subroutine.
|
||||||
|
|
Loading…
Reference in a new issue