MXS-3057: Fix session_trace

The log priority check must not check session trace as it is used inside
the logging code.
This commit is contained in:
Markus Mäkelä 2020-06-30 10:42:46 +03:00
parent 564f16e0e2
commit 31591dbf00
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -165,8 +165,7 @@ bool mxb_log_get_session_trace();
static inline bool mxb_log_is_priority_enabled(int priority)
{
assert((priority & ~LOG_PRIMASK) == 0);
return ((mxb_log_enabled_priorities & (1 << priority)) != 0) || (priority == LOG_ALERT)
|| mxb_log_get_session_trace();
return ((mxb_log_enabled_priorities & (1 << priority)) != 0) || (priority == LOG_ALERT);
}
/**