]> granicus.if.org Git - pgbadger/commitdiff
Fix application name search regex to handle application name with space like "pgAdmin...
authorDarold Gilles <gilles@darold.net>
Wed, 4 Dec 2013 13:19:28 +0000 (14:19 +0100)
committerDarold Gilles <gilles@darold.net>
Wed, 4 Dec 2013 13:19:28 +0000 (14:19 +0100)
pgbadger

index 502a58941adb97b07472dff51a8fbb34b1fb9b37..e0ba2b3bc6568584d3680c3e3a58ecf5c649cc31 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -8450,7 +8450,8 @@ EOF
 sub build_log_line_prefix_regex
 {
        my %regex_map = (
-               '%a' => [('t_appname',      '([0-9a-zA-Z\.\-\_\/\[\]]*)')],                                   # application name
+               #'%a' => [('t_appname',      '([0-9a-zA-Z\.\-\_\/\[\]]*)')],                                   # application name
+               '%a' => [('t_appname',      '(.*)')],                                   # application name
                '%u' => [('t_dbuser',       '([0-9a-zA-Z\_\[\]\-]*)')],                                         # user name
                '%d' => [('t_dbname',       '([0-9a-zA-Z\_\[\]\-]*)')],                                         # database name
                '%r' => [('t_hostport',     '([a-zA-Z0-9\-\.]+|\[local\]|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})?[\(\d\)]*')],     # remote host and port