rclcpp logging still uses fprintf

Created on 16 Feb 2018  路  8Comments  路  Source: ros2/rclcpp

rclcpp logging still uses fprintf all over the place. We should align the logging with the standard RCLUTILS_LOG_XXX macros.

enhancement help wanted

Most helpful comment

I've got a patch almost ready to go (doing some testing). Will push it up soon.

All 8 comments

Indeed that's a good goal, though I think @dhood might have been waiting to resolve some lingering logging pr's before doing this? Maybe not. Either way, help is appreciated.

nah, I just added some logging, didn't convert all of the existing print statements

Cool, then just something that needs to be done. I put the "help wanted" tag on it.

I've got a patch almost ready to go (doing some testing). Will push it up soon.

What should we do for the commented out (f)printf calls still in the repo?
There seem to also be some printf still in use for the signal handlers.

What should we do for the commented out (f)printf calls still in the repo?

I imagine it will be updated when that TODO gets addressed (unless you're speaking about something else)

There seem to also be some printf still in use for the signal handlers.

Also has a todo that would need a decision (and it would need to update the behaviour on launch_testing if we swap) which I didn't think was included in the scope of this PR, but perhaps it was.

I imagine it will be updated when that TODO gets addressed (unless you're speaking about something else)

It seems that we can easily miss it when we adress the TODO as the TODO doesnt mention it.
https://github.com/ros2/rclcpp/pull/466

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v-lopez picture v-lopez  路  14Comments

mikaelarguedas picture mikaelarguedas  路  13Comments

wjwwood picture wjwwood  路  3Comments

Karsten1987 picture Karsten1987  路  10Comments

BriceRenaudeau picture BriceRenaudeau  路  3Comments