mirror of
https://github.com/major/MySQLTuner-perl.git
synced 2024-09-21 07:47:08 +00:00
Merge pull request #798 from jesusbagpuss/issue-797
Improve regexes for log-file error and warning counts (fixed #797)
This commit is contained in:
commit
00ae2c9ddb
@ -1590,12 +1590,9 @@ sub log_file_recommendations {
|
||||
while ( my $logLi = <$fh> ) {
|
||||
chomp $logLi;
|
||||
$numLi++;
|
||||
debugprint "$numLi: $logLi"
|
||||
if $logLi =~ /warning|error/i and $logLi !~ /Logging to/;
|
||||
$nbErrLog++
|
||||
if $logLi =~ /error/i
|
||||
and $logLi !~ /(Logging to|\[Warning\].*ERROR_FOR_DIVISION_BY_ZERO)/;
|
||||
$nbWarnLog++ if $logLi =~ /warning/i;
|
||||
debugprint "$numLi: $logLi" if $logLi =~ /\[(warning|error)\]/i;
|
||||
$nbErrLog++ if $logLi =~ /\[error\]/i;
|
||||
$nbWarnLog++ if $logLi =~ /\[warning\]/i;
|
||||
push @lastShutdowns, $logLi
|
||||
if $logLi =~ /Shutdown complete/ and $logLi !~ /Innodb/i;
|
||||
push @lastStarts, $logLi if $logLi =~ /ready for connections/;
|
||||
|
Loading…
Reference in New Issue
Block a user