200122 12:09:15 mysqld_safe Logging to '/var/log/mysql/error.log'.
when we count errors in log
This commit is contained in:
Kovalkov Dmitrii 2020-01-23 11:24:56 +03:00
parent b5ffe58506
commit dc4aa248c8

View File

@ -1289,7 +1289,7 @@ sub log_file_recommendations {
chomp $logLi;
$numLi++;
debugprint "$numLi: $logLi" if $logLi =~ /warning|error/i;
$nbErrLog++ if $logLi =~ /error/i;
$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;