Skip to content

Simplify logging of mavsdk_server output - #586

Closed
EricPedley wants to merge 2 commits into
mavlink:mainfrom
EricPedley:main
Closed

Simplify logging of mavsdk_server output#586
EricPedley wants to merge 2 commits into
mavlink:mainfrom
EricPedley:main

Conversation

@EricPedley

@EricPedley EricPedley commented Apr 24, 2023

Copy link
Copy Markdown

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.

@julianoes julianoes left a comment

Copy link
Copy Markdown
Collaborator

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

EricPedley commented Apr 25, 2023

Copy link
Copy Markdown
Author

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
Copy Markdown
Collaborator

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

@julianoes

julianoes commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator

@EricPedley sorry, I didn't merge this but I hope what I did in #781 - released in 3.9.0 - works for you. If you could test it and report back whether it works for you, that would be fantastic.

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