From: Darold Gilles Date: Wed, 27 Feb 2013 17:31:42 +0000 (+0100) Subject: Fix issue #65 where using -c | --dbclient with csvlog was broken. Thanks to Jaime... X-Git-Tag: v3.2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26d027cb1d5421fa503f7d4f9ca520e1191d9300;p=pgbadger Fix issue #65 where using -c | --dbclient with csvlog was broken. Thanks to Jaime Casanova for the report. --- diff --git a/pgbadger b/pgbadger index 05b602d..aa0332f 100755 --- a/pgbadger +++ b/pgbadger @@ -1069,6 +1069,7 @@ sub process_file $prefix_vars{'t_dbname'} = $row->[2] || ''; $prefix_vars{'t_appname'} = $row->[22] || ''; $prefix_vars{'t_client'} = $row->[4] || ''; + $prefix_vars{'t_client'} =~ s/:.*//; $prefix_vars{'t_host'} = 'csv'; $prefix_vars{'t_pid'} = $row->[3]; $prefix_vars{'t_session_line'} = $row->[5];