mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Only write to the error log if --log-error is specified and --console is not specified
(On Windows --log-error is enabled by default) mysys/my_getopt.c: Call get_one_option() also for boolean values. scripts/mysqld_safe.sh: Add option --log-error sql/log.cc: Fix for --log-error sql/mysql_priv.h: Fix for --log-error sql/mysqld.cc: Fix for --log-error sql/sql_udf.cc: Lock the mysql/func table properly
This commit is contained in:
@ -1583,7 +1583,7 @@ void sql_perror(const char *message)
|
||||
bool flush_error_log()
|
||||
{
|
||||
bool result=0;
|
||||
if (log_error_file[0] != '\0') /* --log-error="" */
|
||||
if (opt_error_log)
|
||||
{
|
||||
char err_renamed[FN_REFLEN], *end;
|
||||
end= strmake(err_renamed,log_error_file,FN_REFLEN-4);
|
||||
|
Reference in New Issue
Block a user