From 89c9a7f563a6f270f8392c160f3954f8e500714b Mon Sep 17 00:00:00 2001 From: Peter Bell Date: Fri, 15 May 2020 14:05:43 +0100 Subject: [PATCH] Enable debug logging in test builds --- src/LoggerSimple.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LoggerSimple.h b/src/LoggerSimple.h index f8f1ee331..8e51ddedf 100644 --- a/src/LoggerSimple.h +++ b/src/LoggerSimple.h @@ -79,7 +79,7 @@ void LOGERROR(std::string_view a_Format, const Args & ... args) // Macro variants // In debug builds, translate LOGD to LOG, otherwise leave it out altogether: -#ifdef _DEBUG +#if defined(_DEBUG) || defined(TEST_GLOBALS) #define LOGD LOG #else #define LOGD(...) @@ -87,7 +87,7 @@ void LOGERROR(std::string_view a_Format, const Args & ... args) #define LOGWARN LOGWARNING -#ifdef _DEBUG +#if defined(_DEBUG) || defined(TEST_GLOBALS) #define FLOGD FLOG #else #define FLOGD(...)