]> granicus.if.org Git - pgbadger/commitdiff
Fix build_log_line_prefix_regex() that does not include %n as a lookup in %regex_map...
authorGilles Darold <gilles.darold@dalibo.com>
Wed, 26 Apr 2017 22:22:07 +0000 (00:22 +0200)
committerGilles Darold <gilles.darold@dalibo.com>
Wed, 26 Apr 2017 22:22:07 +0000 (00:22 +0200)
pgbadger

index 196fb2b790e1825b5226e36a07b7842841a4aa9f..b4dbcab9295083e1a91481657fdc8aa26a28fc3b 100644 (file)
--- a/pgbadger
+++ b/pgbadger
@@ -14056,7 +14056,7 @@ sub build_log_line_prefix_regex
        $llp =~ s/([\[\]\|\(\)\{\}])/\\$1/g;
        $llp =~ s/\%l([^\d])\d+/\%l$1\\d\+/;
        $llp =~ s/\%q//;
-       while ($llp =~ s/(\%[audrhptmlscvxie])/$regex_map{"$1"}->[1]/) {
+       while ($llp =~ s/(\%[audrhpntmlscvxie])/$regex_map{"$1"}->[1]/) {
                push(@param_list, $regex_map{"$1"}->[0]);
        }
        # replace %% by a single %