@@ -5004,12 +5004,12 @@ static int init_server_components()
5004
5004
/* need to configure logging before initializing storage engines */
5005
5005
if (!opt_bin_log_used && !WSREP_ON)
5006
5006
{
5007
- if (opt_log_slave_updates && (global_system_variables.log_warnings > 1 ))
5008
- sql_print_warning (" You need to use --log-bin to make "
5009
- " --log-slave-updates work." );
5010
- if (binlog_format_used && (global_system_variables.log_warnings > 1 ))
5011
- sql_print_warning (" You need to use --log-bin to make "
5012
- " --binlog-format work." );
5007
+ if (opt_log_slave_updates && (global_system_variables.log_warnings >= 4 ))
5008
+ sql_print_information (" You need to use --log-bin to make "
5009
+ " --log-slave-updates work." );
5010
+ if (binlog_format_used && (global_system_variables.log_warnings >= 4 ))
5011
+ sql_print_information (" You need to use --log-bin to make "
5012
+ " --binlog-format work." );
5013
5013
}
5014
5014
5015
5015
/* Check that we have not let the format to unspecified at this point */
@@ -5497,9 +5497,9 @@ static int init_server_components()
5497
5497
}
5498
5498
else
5499
5499
{
5500
- if (binlog_expire_logs_seconds && (global_system_variables.log_warnings > 1 ))
5501
- sql_print_warning (" You need to use --log-bin to make --expire-logs-days "
5502
- " or --binlog-expire-logs-seconds work." );
5500
+ if (binlog_expire_logs_seconds && (global_system_variables.log_warnings >= 4 ))
5501
+ sql_print_information (" You need to use --log-bin to make --expire-logs-days "
5502
+ " or --binlog-expire-logs-seconds work." );
5503
5503
}
5504
5504
#endif
5505
5505
0 commit comments