major / MySQLTuner-perl

MySQLTuner is a script written in Perl that will assist you with your MySQL configuration and make recommendations for increased performance and stability.
GNU General Public License v3.0
8.98k stars 1.29k forks source link

Improve regexes for log-file error and warning counts (fixed #797) #798

Closed jesusbagpuss closed 2 months ago

jesusbagpuss commented 2 months ago

Match lines from the log file that have [ERROR] or [Warning] in them.

Including the square brackets in the regexes also simplifies other tests e.g. a Note that refers to the 'error log'.

NB The regexes could be further improved by removing the case-insensitive flag if the lines in the log file have always used the same capitalisation for 'ERROR' and 'Warning'. I have looked at the MariaDB source-code for evidence of this, but as yet not found the truth.