`ros2 launch` bug for `$OVERRIDE_LAUNCH_PROCESS_OUTPUT`

Open
#699 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
cli, tooling

Research direction

Start by reproducing the issue with ros2 launch, ROS_LOG_DIR, and OVERRIDE_LAUNCH_PROCESS_OUTPUT=screen using a launch that logs. Trace how launch-specific messages are routed to launch.log; done means the override prevents those messages from being written there, with any separate disable-logging behavior decided explicitly.

Written by the indexing model from the issue text.

Description

more-information-needed

Bug report

Required Info:

  • Operating System:
    • 20.04
  • Installation type:
    • Source
  • Version or commit hash:
    • Galactic and Humble
  • DDS implementation:
    • rmw_cyclonedds_cpp
  • Client library:
    • N/A
Steps to reproduce issue
export ROS_LOG_DIR=~/.ros2/reproduce/
export OVERRIDE_LAUNCH_PROCESS_OUTPUT=screen
ros2 launch your_package your_launch.xml # launch anything that logs
Expected behavior

The launch specific logging messages should only be output to the screen and should not be written to launch.log.

Actual behavior

Irrespective of $OVERRIDE_LAUNCH_PROCESS_OUTPUT's value, launch specific logs get written to $ROS_LOG_DIR/*/launch.log.

Additional information

Additionally, it would be good if users could disable launch specific logging entirely since this option is not provided at the moment.

Dominant language
Python
Stars
156
Forks
200
Avg merge
2d 11h
Merged PRs (30d)
11

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ros2/launch

All issues in ros2/launch

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.