Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Logger Macros #609

Merged
merged 2 commits into from
Apr 20, 2023
Merged

Fix Logger Macros #609

merged 2 commits into from
Apr 20, 2023

Conversation

fabianbs96
Copy link
Member

The logger macros PHASAR_LOG* currently only work if used within the namesapce psr or in an environment that uses using namespace psr.
This PR fixes that issue.

@fabianbs96 fabianbs96 self-assigned this Apr 13, 2023
@fabianbs96 fabianbs96 requested a review from MMory as a code owner April 13, 2023 16:46
@fabianbs96 fabianbs96 added bug Something isn't working technical debt and removed bug Something isn't working labels Apr 14, 2023
Copy link
Member

@MMory MMory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!
However, seeing this I wonder whether at some point there could be a preprocessor-free solution. Then, we would not necessarily litter the top-level namespace with some logger identifiers and could do something like psr::IF_LOG_ENABLED_BOOL or so.

@MMory MMory merged commit 7a8b476 into development Apr 20, 2023
@MMory MMory deleted the f-FixLoggerMacros branch April 20, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants