Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify logging of mavsdk_server output #586

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EricPedley
Copy link

@EricPedley EricPedley commented Apr 24, 2023

Motivation

In #585 I described how logging output from the child process for mavsdk_server at only debug level hides useful errors from the user.

Summary

This PR removes the logic for redirecting the subprocess stdout to the debugger and results in the mavsdk_server child process's stdout and stderr going straight to the main stdout/stderr.

Copy link
Collaborator

@julianoes julianoes left a comment

Choose a reason for hiding this comment

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

What about making it an option?

@EricPedley
Copy link
Author

EricPedley commented Apr 25, 2023

What about making it an option?

Yeah this is a good idea. I added another parameter to System.connect that lets users turn off this logging.

@EricPedley EricPedley requested a review from julianoes April 25, 2023 05:42
@JonasVautherin
Copy link
Collaborator

I think we should try to fix what was done in #370 (if it is indeed broken) instead 🤔

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