Skip to content

AP_Logger: take a blocking semaphore when writing messages using the block logger #27278

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 1 commit into from
Jun 17, 2024

Conversation

andyp1per
Copy link
Contributor

The current block logger can generate logs that have significant holes. It turns out this is due to the very short time it waits to acquire the write buffer lock before giving up. The file logger blocks and the block logger should do the same. Tested on my Marmotte 5

@andyp1per andyp1per force-pushed the pr-log-block-miss branch from b38e636 to 4d8e88b Compare June 11, 2024 21:45
@andyp1per andyp1per requested a review from tridge June 11, 2024 21:46
@peterbarker peterbarker merged commit 608d396 into ArduPilot:master Jun 17, 2024
92 checks passed
@peterbarker
Copy link
Contributor

Merged, thanks @andyp1per

@andyp1per andyp1per deleted the pr-log-block-miss branch June 18, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 4.5.5-beta1
Development

Successfully merging this pull request may close these issues.

4 participants