From: Darold Gilles Date: Mon, 22 Sep 2014 21:34:02 +0000 (+0200) Subject: Change -T | --title position on pgBadger report. Title is now displayed inline right... X-Git-Tag: v6.1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=edbe891d5ae387619027654c73f36b3c57a6955b;p=pgbadger Change -T | --title position on pgBadger report. Title is now displayed inline right after pgBadger label. --- diff --git a/pgbadger b/pgbadger index 753789e..dbf5691 100755 --- a/pgbadger +++ b/pgbadger @@ -203,7 +203,7 @@ my $disable_autovacuum = 0; my $avg_minutes = 5; my $histo_avg_minutes = 60; my $last_parsed = ''; -my $report_title = 'PostgreSQL log analyzer'; +my $report_title = ''; my $log_line_prefix = ''; my $compiled_prefix = ''; my $project_url = 'http://dalibo.github.com/pgbadger/'; @@ -1412,10 +1412,14 @@ if (!$incremental && ($#given_log_files >= 0) ) { my $date = localtime(time); my @tmpjscode = @jscode; map { s/EDIT_URI/\./; } @tmpjscode; + my $local_title = 'Global Index on incremental reports'; + if ($report_title) { + $local_title = 'Global Index - ' . $report_title; + } print $fh qq{ -pgBadger :: Global Index on incremental reports +pgBadger :: $local_title @@ -1431,7 +1435,7 @@ if (!$incremental && ($#given_log_files >= 0) ) { @@ -3542,7 +3546,7 @@ sub html_header