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

Issue 1523 syslog fix #1529

Merged
merged 2 commits into from
Nov 1, 2021
Merged

Issue 1523 syslog fix #1529

merged 2 commits into from
Nov 1, 2021

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Oct 27, 2021

Fix issue with syslog writer being skipped by multi-writer.

Fixes #1523

Test that the log writers report their bytes written as the length of
the input bytes (on success).
It was including the prefixed datetime string in the byte count which
made it longer than the passed in byte slice and the io.Multiwriter
considers that an error and stops processing the writers at that point
(skipping the syslog writer).
@eikenb eikenb added the bug label Oct 27, 2021
@eikenb eikenb added this to the v0.27.2 milestone Oct 27, 2021
@eikenb eikenb requested a review from a team October 27, 2021 22:23
Copy link
Contributor

@findkim findkim left a comment

Choose a reason for hiding this comment

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

heh tricky timestamp

@eikenb eikenb merged commit 1402218 into master Nov 1, 2021
@eikenb eikenb deleted the issue-1523-syslog-fix branch November 1, 2021 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syslog doesn't work after upgrade to 0.27
2 participants