From 41a07a4bd9eba0f812859a0a08ae7686be2c2489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 31 Dec 2019 07:39:44 +0200 Subject: [PATCH] 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. --- maxutils/maxbase/include/maxbase/log.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maxutils/maxbase/include/maxbase/log.h b/maxutils/maxbase/include/maxbase/log.h index 62ce32de3..09f2c9999 100644 --- a/maxutils/maxbase/include/maxbase/log.h +++ b/maxutils/maxbase/include/maxbase/log.h @@ -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(); } /**