From 1b3735a8e841d10a51ff6edef778c2d285e4a7c2 Mon Sep 17 00:00:00 2001 From: Eduardo Ponz Segrelles Date: Fri, 23 Jul 2021 07:21:08 +0200 Subject: [PATCH] Refs 12215: Check for NDEBUG in logInfo Signed-off-by: Eduardo Ponz Segrelles --- include/fastdds/dds/log/Log.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fastdds/dds/log/Log.hpp b/include/fastdds/dds/log/Log.hpp index dc0763ace63..fa106a6051c 100644 --- a/include/fastdds/dds/log/Log.hpp +++ b/include/fastdds/dds/log/Log.hpp @@ -291,7 +291,8 @@ class LogConsumer // Allow multiconfig platforms like windows to disable info queueing on Release and other non-debug configs #if !HAVE_LOG_NO_INFO && \ (defined(FASTDDS_ENFORCE_LOG_INFO) || \ - ((defined(__INTERNALDEBUG) || defined(_INTERNALDEBUG)) && (defined(_DEBUG) || defined(__DEBUG)))) + ((defined(__INTERNALDEBUG) || defined(_INTERNALDEBUG)) && (defined(_DEBUG) || defined(__DEBUG) || \ + !defined(NDEBUG)))) #define logInfo_(cat, msg) \ { \ using namespace eprosima::fastdds::dds; \