Add MXS_ALERT

As errors and warnings are throttled, there is a need for being able
to log severe errors without ever having them throttled (e.g. when
logging the stack in conjunction with a crash).

MXS_ALERT should only be used in a context where the process is known
to be going down, either via crash or explicit exit.
This commit is contained in:
Johan Wikman
2016-09-30 10:25:34 +03:00
parent 087338910e
commit 93b755fc33
2 changed files with 13 additions and 17 deletions

View File

@ -548,7 +548,7 @@ static bool logmanager_init_nomutex(const char* ident,
/**
* Set global variable
*/
mxs_log_enabled_priorities = MXS_LOG_ERR | MXS_LOG_NOTICE | MXS_LOG_WARNING;
mxs_log_enabled_priorities = (1 << LOG_ERR) | (1 << LOG_NOTICE) | (1 << LOG_WARNING);
/**
* Initialize filewriter data and open the log file