Skip to content

Commit

Permalink
Merge #1310: avoid overriding other targets every time in debug level…
Browse files Browse the repository at this point in the history
…s setting iterator

Pull request description:

  In the debug levels setting function, every time we iterate the targets, other targets will change to false due to `d != #x`. We need to set the other targets to its former value.
  • Loading branch information
dexX7 committed Dec 1, 2023
2 parents a2c114c + 01a3438 commit 9352212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omnicore/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9352212

Please sign in to comment.