Skip to content

Improve logging of mavsdk_server #781

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

Merged
merged 4 commits into from
Aug 1, 2025
Merged

Improve logging of mavsdk_server #781

merged 4 commits into from
Aug 1, 2025

Conversation

julianoes
Copy link
Collaborator

@julianoes julianoes commented Jul 26, 2025

This is an attempt to improve the logging situation.

This closes #586, #585, and hopefully fixes mavlink/MAVSDK#2618 as well.

This goes together with mavlink/MAVSDK#2626 mavlink/MAVSDK#2631.

In the beginning a bit of verbosity is a good thing.
- Parse mavsdk_server log levels (Debug/Info/Warn/Error) and
  map to Python logging
- Strip ANSI color codes from server output
- Use 'mavsdk_server' as logger name
- Make warning/error messages visible by default, INFO/DEBUG not
@julianoes julianoes requested a review from JonasVautherin July 26, 2025 09:48
Copy link
Collaborator Author

@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.

Let's try this out.

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.

MAVSDK connection freezes when using mavsdk_server_win32.exe when using python subprocess with stdout=subprocess.PIPE
1 participant