Skip to content

Commit 02f6ba5

Browse files
montywispetrunia
authored andcommitted
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
1 parent 0bab548 commit 02f6ba5

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--log-warnings=4

sql/mysqld.cc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5004,12 +5004,12 @@ static int init_server_components()
50045004
/* need to configure logging before initializing storage engines */
50055005
if (!opt_bin_log_used && !WSREP_ON)
50065006
{
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.");
50135013
}
50145014

50155015
/* Check that we have not let the format to unspecified at this point */
@@ -5497,9 +5497,9 @@ static int init_server_components()
54975497
}
54985498
else
54995499
{
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.");
55035503
}
55045504
#endif
55055505

0 commit comments

Comments
 (0)