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

bugfix: fix compilation with logger turned off #270

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

KSkwarczynski
Copy link
Member

Pull request description

Fix this: #267

Changes or fixes

Examples

@KSkwarczynski KSkwarczynski self-assigned this Jan 6, 2025
@KSkwarczynski KSkwarczynski linked an issue Jan 6, 2025 that may be closed by this pull request
Copy link

github-actions bot commented Jan 6, 2025

Hi @KSkwarczynski, thank you for contributing to MaCh3! Please wait for MaCh3 developers to review your PR. If no one answers within a week, please message people from this list: https://github.com/orgs/mach3-software/teams/mach3admin . While waiting, please enjoy this

meme

Use this action on your projects. Use jokes on issues instead.

@github-actions github-actions bot added the Cmake label Jan 6, 2025
@@ -39,3 +39,11 @@ if(${index} GREATER -1)
else()
cmessage(FATAL_ERROR "Invalid log level specified: ${LOG_LEVEL} \n Should be one of: ${VALID_LOG_OPTIONS}")
endif()

# KS: If logger is set to off many functions which sole purpose is to print message will not print anything. Thus variable will not be used and our very picky WErrror will throw errors
if(LOG_LEVEL STREQUAL "OFF" OR LOG_LEVEL STREQUAL "CRITICAL" OR LOG_LEVEL STREQUAL "ERROR" OR LOG_LEVEL STREQUAL "WARN")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could do something like

set(WIGNORE_LIST OFF CRITICAL ERROR WARN)
if(${LOG_LEVEL} IN_LIST WIGNORE_LIST)

instead for extra tidiness?

@KSkwarczynski KSkwarczynski merged commit 5e231cd into develop Jan 7, 2025
14 checks passed
@KSkwarczynski KSkwarczynski deleted the feature_loggerOff branch January 7, 2025 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation fails with logger OFF
2 participants