From 56a834926941e02e4844ad0f3cc93e44cde7f84f Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Thu, 27 Apr 2017 00:22:07 +0200 Subject: [PATCH] Fix build_log_line_prefix_regex() that does not include %n as a lookup in %regex_map. Thanks to ghosthound for the patch. --- pgbadger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgbadger b/pgbadger index 196fb2b..b4dbcab 100644 --- 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 % -- 2.50.1