Skip to content

add "--log-level" option for "ros2 component load"#1212

Open
penww wants to merge 1 commit into
ros2:rollingfrom
penww:rolling
Open

add "--log-level" option for "ros2 component load"#1212
penww wants to merge 1 commit into
ros2:rollingfrom
penww:rolling

Conversation

@penww
Copy link
Copy Markdown

@penww penww commented Mar 20, 2026

Description

Fixes (ros2/rclcpp#3091)

Support set component level log-level:

ros2 component load /ComponentManager <PKG> <PLUGIN> --log-level debug

Is this user-facing behavior change?

No, the additional log level falls back to the current behavior.

Did you use Generative AI?

Partially with Claude Sonnet 4.6

Additional Information

Related PR: ros2/rclcpp#3092

@penww penww force-pushed the rolling branch 2 times, most recently from 7971d62 to 7ee6285 Compare March 20, 2026 15:24
@jmachowinski
Copy link
Copy Markdown

@fujitatomoya can you have a look at this ?

Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

can we use the following instead?

https://github.com/ros2/rclpy/blob/4095493ac95d6c3db69aa68ee20236e96a5bd3e3/rclpy/rclpy/logging.py#L65-L67

this should reduce the implementation and maintenance cost.

although ros2component does not have much unit tests, test that makes sure logging level is actually applied would be nice to have.

@penww
Copy link
Copy Markdown
Author

penww commented Apr 23, 2026

Thanks @fujitatomoya for review. will update.

Signed-off-by: Peng Wang <penwang@qti.qualcomm.com>
@penww
Copy link
Copy Markdown
Author

penww commented Apr 24, 2026

Updated, please help to review again, thank you very much @fujitatomoya

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.

3 participants