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:
@ -169,6 +169,7 @@ int main(int argc, char **argv)
|
||||
|
||||
// We ignore potential errors.
|
||||
mxs_log_init(NULL, NULL, MXS_LOG_TARGET_DEFAULT);
|
||||
atexit(mxs_log_finish);
|
||||
mxs_log_set_augmentation(0);
|
||||
mxs_log_set_priority_enabled(LOG_DEBUG, debug_out);
|
||||
|
||||
|
@ -96,6 +96,7 @@ int main(int argc, char **argv)
|
||||
|
||||
|
||||
mxs_log_init(NULL, NULL, MXS_LOG_TARGET_DEFAULT);
|
||||
atexit(mxs_log_finish);
|
||||
|
||||
mxs_log_set_priority_enabled(LOG_NOTICE, false);
|
||||
mxs_log_set_priority_enabled(LOG_ERR, true);
|
||||
|
Reference in New Issue
Block a user