Skip to content

Do not use buffered writers to write lines to the log file - #89

Merged
benthecarman merged 1 commit into
lightningdevkit:mainfrom
tankyleo:log-with-linewriter
Dec 20, 2025
Merged

Do not use buffered writers to write lines to the log file#89
benthecarman merged 1 commit into
lightningdevkit:mainfrom
tankyleo:log-with-linewriter

Conversation

@tankyleo

@tankyleo tankyleo commented Dec 20, 2025

Copy link
Copy Markdown
Contributor

When tailing the log file, we do not expect any buffering as the lines get written.

@ldk-reviews-bot

ldk-reviews-bot commented Dec 20, 2025

Copy link
Copy Markdown

👋 Thanks for assigning @benthecarman as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

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

Every log we write is a new line, if we're doing this, may as well not use a buffer

When tailing the log file, we do not expect any buffering as the lines
get written.
@tankyleo
tankyleo force-pushed the log-with-linewriter branch from 6ce7593 to 5fb1ccb Compare December 20, 2025 00:50
@tankyleo tankyleo changed the title Use LineWriter to write logs to the log file Do not use buffered writers to write lines to the log file Dec 20, 2025
@benthecarman
benthecarman merged commit 783a35e into lightningdevkit:main Dec 20, 2025
7 checks passed
rsafier pushed a commit to rsafier/ldk-server that referenced this pull request Apr 20, 2026
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