MXS-2005: Use log manager only after initialization

The log manager functions must not be used before it is initialized.
This commit is contained in:
Markus Mäkelä
2018-08-12 11:01:53 +03:00
parent 39ce6c624f
commit 5a306aa20a
13 changed files with 22 additions and 6 deletions

View File

@ -465,6 +465,7 @@ int main(int argc, char **argv)
{
int rc = 0;
mxs_log_init(NULL, NULL, MXS_LOG_TARGET_STDOUT);
mxs::MessageQueue::init();
rc += test_arguments();
@ -476,5 +477,6 @@ int main(int argc, char **argv)
rc += test_domain_matching("mariadbmon", "mysqlmon", "test_domain_matching2");
rc += test_output();
mxs_log_finish();
return rc;
}