The logic here was supposed to be that, if errors weren't already being
logged explicitly and if no output driver was already directed to stdout,
then send errors to standard output. But one of the conditions was
reversed. This fixes the problem.
register_output_driver (to);
}
register_output_driver (to);
}
- if (to->has_terminal_driver && !to->has_error_file)
+ if (!to->has_terminal_driver && !to->has_error_file)
msglog_create ("-");
string_map_destroy (&to->options);
msglog_create ("-");
string_map_destroy (&to->options);