privoxy-log-parser: Properly deal with 'Certificate error' crunches
authorFabian Keil <fk@fabiankeil.de>
Mon, 18 Jan 2021 00:29:42 +0000 (01:29 +0100)
committerFabian Keil <fk@fabiankeil.de>
Mon, 18 Jan 2021 13:21:16 +0000 (14:21 +0100)
Previously the error description was highlighted as 'host'.

tools/privoxy-log-parser.pl

index 095133a..02a38cd 100755 (executable)
@@ -1422,6 +1422,11 @@ sub handle_loglevel_crunch($) {
         #  [...]&filter... [too long, truncated]
         $content = highlight_matched_pattern($content, 'request_', '^.*(?=\.\.\. \[too long, truncated\]$)');
 
+    } elsif ($content =~ m/Certificate error:/) {
+
+        # Certificate error: ASN date error, current date after: https://expired.badssl.com/
+        $content = highlight_matched_pattern($content, 'request_', 'https://.*');
+
     } else {
 
         # Blocked: http://ads.example.org/