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

Spurious empty lines in log #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

corrado9999
Copy link

Not sure if it's the same issue of #11, but each time the event handler was called with a bunch of lines to log, it added a new empty line because split('\n') returns a leading empty string when the input ends with a newline.

…eading empty

string if the input ends with a newline. This resulted in spurious empty lines in
log because of the buffering.
nijel added a commit to WeblateOrg/docker that referenced this pull request Jul 22, 2020
@cweiske
Copy link

cweiske commented Sep 18, 2023

The patch works fine. The screenshot shows the patched stage system, while the other ones have the standard version:
2023-09-18 graylog without newlines

The non-staging systems have many empty log lines.

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