Skip to content
Permalink
Browse files
remove invalid options from warning messages
--log-slow-queries was removed in 10.0. Now opt_slow_logname
can be set either with --slow-query-log-file or with --log-basename


--log was removed in 10.0. Now opt_logname
can be set either with --general-log-file or with --log-basename
  • Loading branch information
vuvova committed Aug 10, 2022
1 parent 50a2a8b commit 9d4ed44
Showing 1 changed file with 4 additions and 4 deletions.
@@ -4748,15 +4748,15 @@ static int init_common_variables()
/* check log options and issue warnings if needed */
if (opt_log && opt_logname && *opt_logname &&
!(log_output_options & (LOG_FILE | LOG_NONE)))
sql_print_warning("Although a path was specified for the "
"--log option, log tables are used. "
sql_print_warning("Although a general log file was specified, "
"log tables are used. "
"To enable logging to files use the --log-output option.");

if (global_system_variables.sql_log_slow && opt_slow_logname &&
*opt_slow_logname &&
!(log_output_options & (LOG_FILE | LOG_NONE)))
sql_print_warning("Although a path was specified for the "
"--log-slow-queries option, log tables are used. "
sql_print_warning("Although a slow query log file was specified, "
"log tables are used. "
"To enable logging to files use the --log-output=file option.");

if (!opt_logname || !*opt_logname)

0 comments on commit 9d4ed44

Please sign in to comment.