From 01a3438c3b5663fa05479dde5661c4b4327cb8a5 Mon Sep 17 00:00:00 2001 From: Jon Huang Date: Tue, 21 Nov 2023 18:39:03 -0800 Subject: [PATCH] avoid overriding other targets every time in debug levels setting iterator --- src/omnicore/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/omnicore/log.cpp b/src/omnicore/log.cpp index 8cb83be5a6ddc..2e68a046c36a2 100644 --- a/src/omnicore/log.cpp +++ b/src/omnicore/log.cpp @@ -236,7 +236,7 @@ void InitDebugLogLevels() for (const auto& d : debugLevels) { auto none = d == "none"; auto all = d == "all"; -#define ENABLE_LOG(x) msc_debug_##x = none ? false : (all || d == #x) +#define ENABLE_LOG(x) msc_debug_##x = none ? false : (all || d == #x || msc_debug_##x) ENABLE_LOG(parser_data); ENABLE_LOG(parser_readonly); ENABLE_LOG(parser_dex);