From: Darold Gilles Date: Thu, 14 Jan 2016 15:48:36 +0000 (+0100) Subject: Report information about "LOG: skipping analyze of ..." into events reports. X-Git-Tag: v7.3~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0ba8e2d7b7da37ec2f9eaa4f0084351d513ea6e;p=pgbadger Report information about "LOG: skipping analyze of ..." into events reports. --- diff --git a/pgbadger b/pgbadger index bba30b8..02f1145 100755 --- a/pgbadger +++ b/pgbadger @@ -3888,6 +3888,7 @@ sub show_error_as_text $msg =~ s/ERROR: (recovery has paused)/LOG: $1/; $msg =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/; $msg =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/; + $msg =~ s/ERROR: (skipping analyze of)/LOG: $1/; print $fh "$idx) " . &comma_numbers($error_info{$k}{count}) . " - $msg\n"; print $fh "--\n"; my $j = 1; @@ -3897,6 +3898,7 @@ sub show_error_as_text || ($error_info{$k}{error}[$i] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/) || ($error_info{$k}{error}[$i] =~ s/ERROR: (recovery has paused)/LOG: $1/) || ($error_info{$k}{error}[$i] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/) + || ($error_info{$k}{error}[$i] =~ s/ERROR: (skipping analyze of)/LOG: $1/) ) { $logs_type{ERROR}--; @@ -3916,6 +3918,7 @@ sub show_error_as_text || ($error_info{$k}{error}[0] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/) || ($error_info{$k}{error}[0] =~ s/ERROR: (recovery has paused)/LOG: $1/) || ($error_info{$k}{error}[0] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/) + || ($error_info{$k}{error}[0] =~ s/ERROR: (skipping analyze of)/LOG: $1/) ) { $logs_type{ERROR}--; @@ -8893,6 +8896,7 @@ sub print_log_level || ($error_info{$k}{error}[$i] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/) || ($error_info{$k}{error}[$i] =~ s/ERROR: (recovery has paused)/LOG: $1/) || ($error_info{$k}{error}[$i] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/) + || ($error_info{$k}{error}[$i] =~ s/ERROR: (skipping analyze of)/LOG: $1/) ) { $logs_type{ERROR}--; @@ -8905,6 +8909,7 @@ sub print_log_level || ($error_info{$k}{error}[0] =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/) || ($error_info{$k}{error}[0] =~ s/ERROR: (recovery has paused)/LOG: $1/) || ($error_info{$k}{error}[0] =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/) + || ($error_info{$k}{error}[0] =~ s/ERROR: (skipping analyze of)/LOG: $1/) ) { $logs_type{ERROR}--; @@ -9112,6 +9117,7 @@ sub show_error_as_html $msg =~ s/ERROR: (database system was interrupted while in recovery)/LOG: $1/; $msg =~ s/ERROR: (recovery has paused)/LOG: $1/; $msg =~ s/ERROR: (sending cancel to blocking autovacuum)/LOG: $1/; + $msg =~ s/ERROR: (skipping analyze of)/LOG: $1/; my $error_level_class = 'text-error'; if ($msg =~ /^WARNING: /) { $error_level_class = 'text-warning'; @@ -10093,6 +10099,8 @@ sub parse_query $prefix_vars{'t_loglevel'} = 'ERROR'; } elsif ($prefix_vars{'t_query'} =~ /ending cancel to blocking autovacuum/) { $prefix_vars{'t_loglevel'} = 'ERROR'; + } elsif ($prefix_vars{'t_query'} =~ /skipping analyze of/) { + $prefix_vars{'t_loglevel'} = 'ERROR'; } } elsif (($prefix_vars{'t_loglevel'} eq 'ERROR') && !$error_only) {