$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;
|| ($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}--;
|| ($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}--;
|| ($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}--;
|| ($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}--;
$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';
$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) {