Skip to content

Conversation

@julianoes
Copy link
Collaborator

While debugging debug output in MAVSDK-Python I realized that error messages like "Invalid connection" just never appear which is very confusing.

I have also seen reports in the past where MAVSDK logs wouldn't show up or show up very late in journalctl (if an application is started via systemd). Again, very confusing.

Given we don't print a lot of stuff, and flushing after each line unlikely has real performance implications, I suggest to use std::endl which includes std::flush instead of only printing a newline.

This replaces #2626. It's currently on top of #2630 for CI testing.

@julianoes julianoes force-pushed the pr-flush-2 branch 2 times, most recently from 5d4ecce to 3f7c28a Compare July 31, 2025 08:24
@julianoes julianoes force-pushed the pr-segfault-fixes branch from 5a3e311 to 3867fb5 Compare July 31, 2025 08:43
@julianoes julianoes force-pushed the pr-segfault-fixes branch 2 times, most recently from 0dae05e to f5385dd Compare August 1, 2025 01:39
Base automatically changed from pr-segfault-fixes to main August 1, 2025 02:55
While debugging debug output in MAVSDK-Python I realized that error
messages like "Invalid connection" just never appear which is very
confusing.

I have also seen reports in the past where MAVSDK logs wouldn't show up
or show up very late in journalctl (if an application is started via
systemd). Again, very confusing.

Given we don't print a lot of stuff, and flushing after each line
unlikely has real performance implications, I suggest to use std::endl
which includes std::flush instead of only printing a newline.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 1, 2025

@julianoes julianoes marked this pull request as ready for review August 1, 2025 04:31
@julianoes julianoes merged commit 9a40638 into main Aug 1, 2025
84 of 85 checks passed
@julianoes julianoes deleted the pr-flush-2 branch August 1, 2025 04:32
julianoes added a commit to mavlink/MAVSDK-Python that referenced this pull request Sep 16, 2025
This should now work properly thanks to this fix:
mavlink/MAVSDK#2631
julianoes added a commit to mavlink/MAVSDK-Python that referenced this pull request Sep 16, 2025
This should now work properly thanks to this fix:
mavlink/MAVSDK#2631
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.

2 participants