]> granicus.if.org Git - pgbadger/commitdiff
Automatically remove %q from prefix. Thanks to mbecroft for the report.
authorDarold Gilles <gilles@darold.net>
Sun, 1 Mar 2015 09:25:33 +0000 (10:25 +0100)
committerDarold Gilles <gilles@darold.net>
Sun, 1 Mar 2015 09:25:33 +0000 (10:25 +0100)
pgbadger

index 486daa450721ac371e8913b3b54753e2f76c5ae0..1d2e3267a453ac2c159e899cb878e0b75104032c 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -10742,6 +10742,7 @@ sub build_log_line_prefix_regex
        my @param_list = ();
        $log_line_prefix =~ s/([\[\]\|\(\)\{\}])/\\$1/g;
        $log_line_prefix =~ s/\%l([^\d])\d+/\%l$1\\d\+/;
+       $log_line_prefix =~ s/\%q//;
        while ($log_line_prefix =~ s/(\%[audrhptmlscvxie])/$regex_map{"$1"}->[1]/) {
                push(@param_list, $regex_map{"$1"}->[0]);
        }