Skip to content

Fix logging for tests and examples#28

Merged
EddyTheCo merged 1 commit intodevelopfrom
fix_lcm_log
Apr 13, 2026
Merged

Fix logging for tests and examples#28
EddyTheCo merged 1 commit intodevelopfrom
fix_lcm_log

Conversation

@EddyTheCo
Copy link
Copy Markdown
Contributor

Remove the use of the LCM_LOG_DEFAULT_ENABLED compile definition. LCM_LOG has to be enable always at runtime.
Enable LCM_LOG at runtime for the tests and the example. This solves #24.

@github-actions
Copy link
Copy Markdown

🧩 Build Artifacts

✅ The following build artifacts were produced:

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the logging system by removing the compile-time definition LCM_LOG_DEFAULT_ENABLED and defaulting logging to disabled. Logging is now explicitly enabled in the connmanctl example and via a new logging_init.cpp helper for specific tests. The review feedback highlights that some test targets might now lack logging due to the removal of the global definition and suggests using the [[maybe_unused]] attribute on the static initializer in logging_init.cpp to avoid potential compiler warnings.

Comment thread tests/CMakeLists.txt
Comment thread tests/logging_init.cpp Outdated
Remove the use of the LCM_LOG_DEFAULT_ENABLED compile definition.
LCM_LOG has to be enable always at runtime.
Enable LCM_LOG at runtime for the tests and the example.
This solves #24.

Signed-off-by: Eduardo Gonzalez <eduardo.gonzalez@amarulasolutions.com>
@github-actions
Copy link
Copy Markdown

🧩 Build Artifacts

✅ The following build artifacts were produced:

@EddyTheCo EddyTheCo merged commit b8ee102 into develop Apr 13, 2026
2 checks passed
@EddyTheCo EddyTheCo deleted the fix_lcm_log branch April 13, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant