Skip to content

Fix messy log truncations#41

Closed
macifell wants to merge 1 commit intopimoroni:mainfrom
macifell:logging-truncate
Closed

Fix messy log truncations#41
macifell wants to merge 1 commit intopimoroni:mainfrom
macifell:logging-truncate

Conversation

@macifell
Copy link
Copy Markdown

@macifell macifell commented Feb 7, 2023

The reverse search was going from the end of the file to discard pointer, which is the same range that is covered by the forward search. This sets the start of the reverse search to be the start of the chunk.

Without this change I was seeing the log file frequently start with a partial line.

@ccrighton
Copy link
Copy Markdown

ccrighton commented Jun 27, 2024

I've reviewed this PR. It does improve the log truncation but unfortunately, does not behave as expected or consistently. I've created #62 to resolve the issues.

@macifell
Copy link
Copy Markdown
Author

I'm closing this as #62 is a more comprehensive solution.

@macifell macifell closed this Jun 27, 2024
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