-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
journal: fix parsing of the stdout stream
#1460
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
journal: fix parsing of the stdout stream
#1460
Conversation
|
Hmm, I am not convinced this would be a good idea... We actually had this discussion before. I don't think we should guarantee bit-exact storing away of log messages when using stdout or stderr. Making sure leading whitespace is retained is important, so that indenting stays around, but trailing whitespace and empty lines I think we should suppress in order to keep logs minimal. I mean, we generally reserve the right to suppress messages due to ratelimiting and such, hence I think the best we can do to not even get into the ratelimiting case is suppress as much "noise" as we can, and that includes whitespace at unnecessary places... I figure the 0-byte issue does matter though, we should retain that like any other non-whitespace character |
I agree
I can write empty lines right now:) Ok. I'll remove trailing spaces and empty lines. |
* save leading whitespaces * remove trailing whitespaces * remove empty lines * retain '\0' like any other non-whitespace character See systemd#1460 (comment)
42025d8 to
74a2ca6
Compare
stdout streamstdout stream
|
@poettering , fixed |
|
@rumpelsepp, yeah, the stacktrace of go application looks fine:) |
|
Nice one! |
|
|
|
#1937 has been merged now, hence this one can be closed I figure. |
There are two problems: