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:
parent
564f16e0e2
commit
31591dbf00
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user