Add an option to not capture stdout and stderr

Open
#892 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start with ExecuteProcess and its child-process output handling, then inspect the osrf_pycommon path mentioned in the issue and how it calls loop.subprocess_exec. Trace where stdout and stderr are captured and prefixed. Done means an option can leave both streams uncaptured so systemd-journal retains their original process and stream information.

Written by the indexing model from the issue text.

Description

enhancement help wanted
Description

When using ExecuteProcess and its childs, the current mechanism to capture the stdout and re-emit it with a prefix is fine. However, I would like an option to not capture those output.

Motivation

We are using systemd-journal to monitor our logs, and it comes with the added benefit kinda structured logs:
you can filter by executable, command line, stdout vs stderr, etc...

However, by stepping between the difference processes and journald, launch removes this kind of information and add the process name in the MESSAGE field of the journal entry instead of using another variable.

Design / Implementation Considerations

It would probably mean to update osrf_pycommon as well to be able to pass the correct stdout/stderr values to loop.subprocess_exec.

Additional Information

No response

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.