Skip to content

Commit

Permalink
Macro not defined on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
chynesNR committed Nov 2, 2023
1 parent f9d51f3 commit 303929e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Agent/NewRelic/Profiler/Logging/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace NewRelic {
}
// Console logging at debug or trace level incurs a very large
// performance hit. Clamp the log level to INFO in that case.
return max(Level::LEVEL_INFO, _level);
return (_level < Level::LEVEL_INFO) ? Level::LEVEL_INFO : _level;
}

void SetConsoleLogging(bool enabled)
Expand Down

0 comments on commit 303929e

Please sign in to comment.