From 31591dbf00824c0792927e7bc73cb62c928aa9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 30 Jun 2020 10:42:46 +0300 Subject: [PATCH] MXS-3057: Fix session_trace The log priority check must not check session trace as it is used inside the logging code. --- maxutils/maxbase/include/maxbase/log.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/maxutils/maxbase/include/maxbase/log.h b/maxutils/maxbase/include/maxbase/log.h index 74a1c633a..8139d90da 100644 --- a/maxutils/maxbase/include/maxbase/log.h +++ b/maxutils/maxbase/include/maxbase/log.h @@ -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); } /**