From: Fabian Keil <fk@fabiankeil.de>
Date: Wed, 24 Mar 2021 09:54:32 +0000 (+0100)
Subject: privoxy-log-parser: Clarify --statistics output
X-Git-Tag: v_3_0_33~75
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/developer-manual/man-page/faq/static/diff?a=commitdiff_plain;h=696b7dcba6dc7173e6a54ad4270bfd6c9b432f64;p=privoxy.git

privoxy-log-parser: Clarify --statistics output

... by explicitly mentioning that the status codes
sent by the server may differ from the ones in
"debug 512" messages.
---

diff --git a/tools/privoxy-log-parser.pl b/tools/privoxy-log-parser.pl
index 57a7f039..04d58656 100755
--- a/tools/privoxy-log-parser.pl
+++ b/tools/privoxy-log-parser.pl
@@ -2449,7 +2449,7 @@ sub print_stats() {
         print "HTTP version distribution unknown. No CLF message parsed yet. Is 'debug 512' enabled?\n";
     }
     if (exists $stats{'status-code'}) {
-        print "HTTP status codes:\n";
+        print "HTTP status codes according to 'debug 512' (status codes sent by the server may differ):\n";
         foreach my $status_code (sort {$stats{'status-code'}{$b} <=> $stats{'status-code'}{$a}} keys %{$stats{'status-code'}}) {
             printf "%8d : %-8d\n",  $stats{'status-code'}{$status_code}, $status_code;
         }