MXS-621: Message logged before the log manager is initialized are now properly logged

The log manager wasn't initialized implicitly when a log message was written.
This caused all logged messages to be ignored before the log manager was
initialized.
This commit is contained in:
Markus Makela 2016-04-14 19:22:59 +03:00
parent 1fc27b39af
commit a0d027a513

View File

@ -782,6 +782,7 @@ static void print_log_n_stderr(
if (do_log)
{
mxs_log_init(NULL, get_logdir(), MXS_LOG_TARGET_FS);
char errbuf[STRERROR_BUFLEN];
MXS_ERROR("%s %s %s %s",
log_err,