From e7609d7a91614c0dc9a0b21487b33b7437636bed Mon Sep 17 00:00:00 2001 From: Kovalkov Dmitrii Date: Thu, 23 Jan 2020 16:37:45 +0300 Subject: [PATCH] And for debug line ignore these lines --- mysqltuner.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 927a62a..cc87c22 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1288,8 +1288,8 @@ sub log_file_recommendations { while ( my $logLi = <$fh> ) { chomp $logLi; $numLi++; - debugprint "$numLi: $logLi" if $logLi =~ /warning|error/i; - $nbErrLog++ if $logLi =~ /error/i and $logLi !~ /Logging to/; + debugprint "$numLi: $logLi" if $logLi =~ /warning|error/i and $logLi !~ /Logging to/; + $nbErrLog++ if $logLi =~ /error/i and $logLi !~ /Logging to/; $nbWarnLog++ if $logLi =~ /warning/i; push @lastShutdowns, $logLi if $logLi =~ /Shutdown complete/ and $logLi !~ /Innodb/i;