From: Darold Gilles Date: Sat, 15 Aug 2015 08:33:58 +0000 (+1100) Subject: Fix unregistred client hostname with default pattern. Thanks to Eric S. Lucinger... X-Git-Tag: v7.2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd5de05d292ad11b94652178eea398e27fb4a02c;p=pgbadger Fix unregistred client hostname with default pattern. Thanks to Eric S. Lucinger Ruiz for the report. --- diff --git a/pgbadger b/pgbadger index f6672c9..29bdaa0 100755 --- a/pgbadger +++ b/pgbadger @@ -10626,7 +10626,7 @@ sub set_current_infos $cur_info{$t_pid}{loglevel} = $prefix_vars{'t_loglevel'}; $cur_info{$t_pid}{dbname} = $prefix_vars{'t_dbname'}; $cur_info{$t_pid}{dbuser} = $prefix_vars{'t_dbuser'}; - $cur_info{$t_pid}{dbclient} = $prefix_vars{'t_client'}; + $cur_info{$t_pid}{dbclient} = $prefix_vars{'t_client'} || $prefix_vars{'t_dbclient'}; $cur_info{$t_pid}{dbappname} = $prefix_vars{'t_appname'}; $cur_info{$t_pid}{date} = $prefix_vars{'t_date'}; $cur_info{$t_pid}{bind} = $prefix_vars{'t_bind'};