Skip to content
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

remove quick-logs, line buffer instead #1477

Merged
merged 4 commits into from
Jan 14, 2024

Conversation

michaelortmann
Copy link
Member

@michaelortmann michaelortmann commented Oct 6, 2023

Found by: michaelortmann
Patch by: michaelortmann
Fixes: #1449

One-line summary:
remove quick-logs, line buffer instead

Additional description (if needed):
remove quick-logs
quick logs disabled meant file logfile was buffered with flush() every 5 minues
quick logs enabled meant logfile was buffered flush() every minute
now, instead, we dont explicitely flush, but set logfile to line buffered
setvbuf(_IOLBF) is posix 2001
Please regenerate docs via sphinx after merge

Test cases demonstrating functionality (if applicable):

@michaelortmann michaelortmann changed the title (RFC / PoC) quick-logs -> log-interval remove quick-logs, line buffer instead Oct 13, 2023
@vanosg vanosg added this to the v1.10.0 milestone Dec 1, 2023
src/main.c Show resolved Hide resolved
src/misc.c Outdated Show resolved Hide resolved
Copy link
Member

@thommey thommey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vanosg vanosg merged commit 40f93b8 into eggheads:develop Jan 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove quick-logs, write to logfiles instantly
3 participants