Commit 02f6ba57 authored by Monty's avatar Monty Committed by Sergei Petrunia

Changed some startup warnings to notes

- Changed 'WARNING' of type "You need to use --log-bin to make ... work"
  to 'Note'
- Only print startup Notes if log_warnings >= 4
parent 0bab5481
...@@ -5004,11 +5004,11 @@ static int init_server_components() ...@@ -5004,11 +5004,11 @@ static int init_server_components()
/* need to configure logging before initializing storage engines */ /* need to configure logging before initializing storage engines */
if (!opt_bin_log_used && !WSREP_ON) if (!opt_bin_log_used && !WSREP_ON)
{ {
if (opt_log_slave_updates && (global_system_variables.log_warnings > 1)) if (opt_log_slave_updates && (global_system_variables.log_warnings >= 4))
sql_print_warning("You need to use --log-bin to make " sql_print_information("You need to use --log-bin to make "
"--log-slave-updates work."); "--log-slave-updates work.");
if (binlog_format_used && (global_system_variables.log_warnings > 1)) if (binlog_format_used && (global_system_variables.log_warnings >= 4))
sql_print_warning("You need to use --log-bin to make " sql_print_information("You need to use --log-bin to make "
"--binlog-format work."); "--binlog-format work.");
} }
...@@ -5497,8 +5497,8 @@ static int init_server_components() ...@@ -5497,8 +5497,8 @@ static int init_server_components()
} }
else else
{ {
if (binlog_expire_logs_seconds && (global_system_variables.log_warnings > 1)) if (binlog_expire_logs_seconds && (global_system_variables.log_warnings >= 4))
sql_print_warning("You need to use --log-bin to make --expire-logs-days " sql_print_information("You need to use --log-bin to make --expire-logs-days "
"or --binlog-expire-logs-seconds work."); "or --binlog-expire-logs-seconds work.");
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment