From 9e4173b5fa821e75adb40b725d92074e99ed7177 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 5 Feb 2021 05:13:29 +0100 Subject: [PATCH] privoxy-log-parser.pl: Let gather_loglevel_clf_stats() tolerate another 'invalid' log message --- tools/privoxy-log-parser.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl index 694d5fe7..ed574c7f 100755 --- a/tools/privoxy-log-parser.pl +++ b/tools/privoxy-log-parser.pl @@ -2149,6 +2149,8 @@ sub gather_loglevel_clf_stats($) { unless (defined $method) { # +0200] "Invalid request" 400 0 return if ($content =~ m/^[+-]\d{4}\] "Invalid request"/); + # +0100] "Failed reading chunked client body" 400 0 + return if ($content =~ m/^[+-]\d{4}\] "Failed reading chunked client body"/); # +0100] "GET https://securepubads.g.doubleclick.net/gampad/ads?gd[...]... [too long, truncated] if ($content =~ m/\[too long, truncated\]$/) { print("Skipped LOG_LEVEL_CLF message that got truncated by Privoxy. Statistics will be inprecise.\n"); -- 2.39.2