Open SammyRamone opened 1 year ago
We think this is probably an issue/feature request for launch_ros, so moving it over there.
Even though RCUTILS_CONSOLE_OUTPUT_FORMAT
is meant to be the format for a particular process, I think it would make sense to have launch respect it if it is set (really this should be named ROS_OUTPUT_FORMAT
, but that ship may have sailed). I think a pull request to fix this would be welcome.
Even though
RCUTILS_CONSOLE_OUTPUT_FORMAT
is meant to be the format for a particular process, I think it would make sense to have launch respect it if it is set (really this should be namedROS_OUTPUT_FORMAT
, but that ship may have sailed).
Okay, then I would propose to use the RCUTILS_CONSOLE_OUTPUT_FORMAT for now. I would agree that ROS_OUTPUT_FORMAT or ROS_CONSOLE_OUTPUT_FORMAT would make more sense as a name. However, this would affect other pacakges and any name changes can also be easily done after solving this issue.
I think a pull request to fix this would be welcome.
I will create a PR. It might take some time since this is low priority for me, but it is now on my todo list.
The logger used in launch does not respect the custom formatting of logs which can be defined by the RCUTILS_CONSOLE_OUTPUT_FORMAT variable (see also here ). While this is not a critical bug, it is annoying and reduces readability of the output. I am not sure if there might be a reason for the decision to hardcode the output format, but in my oppinion it should at least follow the environment variable for the output on the console. If you agree that this is indeed not intended behavior, I would be willing to create a PR to fix it.
Bug report
Required Info:
Steps to reproduce issue
Expected behavior
Actual behavior
Additional information
I guess the reason for this is, that the formating is hardcoded at multiple places, e.g. here https://github.com/ros2/launch/blob/8cfa72314d8a9d8e830c6818c2b39087f8fdf196/launch/launch/logging/__init__.py#L215