MXS-2801: Log INFO messages when session_trace is on

Since the session trace should contain all messages, the log priority
check should always return true when session_trace is on.
This commit is contained in:
Markus Mäkelä 2019-12-31 07:39:44 +02:00
parent 1092203779
commit 2c2363c639
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -165,7 +165,8 @@ 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);
return ((mxb_log_enabled_priorities & (1 << priority)) != 0) || (priority == LOG_ALERT)
|| mxb_log_get_session_trace();
}
/**