From 9a0fb10d66949d1e4a3eb9be9b19a49367faf987 Mon Sep 17 00:00:00 2001 From: John Salter Date: Mon, 12 Jun 2023 13:48:35 +0100 Subject: [PATCH] Missing return when skipping log file checks Related to #661 - message is OK - and other changes to skip checks work as intended, but without a return here, it will look for local log files. --- mysqltuner.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/mysqltuner.pl b/mysqltuner.pl index bb8c191..39db563 100644 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1431,6 +1431,7 @@ sub get_log_file_real_path { sub log_file_recommendations { if ( is_remote eq 1 ) { infoprint "Skipping error log files checks on remote host"; + return; } my $fh; $myvar{'log_error'} = $opt{'server-log'}