File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -5775,13 +5775,26 @@ ($$$)
57755775 my $found_skip_core = 0;
57765776 my $found_no_console = 0;
57775777 my $found_log_error = 0;
5778+
5779+ # On windows, do not add console if log-error found in .cnf file
5780+ open (CONFIG_FILE, " < $path_config_file " ) or
5781+ die (" Could not open output file $path_config_file " );
5782+
5783+ while (<CONFIG_FILE>)
5784+ {
5785+ if (m / ^log[-_] error/ )
5786+ {
5787+ $found_log_error = 1;
5788+ }
5789+ }
5790+ close (CONFIG_FILE);
5791+
57785792 foreach my $arg ( @$extra_opts )
57795793 {
57805794 # Skip --defaults-file option since it's handled above.
57815795 next if $arg =~ / ^--defaults-file/ ;
5782-
57835796
5784- if ($arg eq " --log- error" )
5797+ if ($arg =~ / ^ --log[-_] error/ )
57855798 {
57865799 $found_log_error = 1;
57875800 }
You can’t perform that action at this time.
0 commit comments