From a0d027a5135724aa580d0906c172011c5d08c284 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Thu, 14 Apr 2016 19:22:59 +0300 Subject: [PATCH] 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. --- server/core/gateway.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/core/gateway.c b/server/core/gateway.c index 1e74ae951..509f55920 100644 --- a/server/core/gateway.c +++ b/server/core/gateway.c @@ -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,