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

Cherry-pick #15945 to 7.x: remove debug logging from streambuf #15971

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions libbeat/common/streambuf/streambuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ package streambuf
import (
"bytes"
"errors"

"github.com/elastic/beats/libbeat/logp"
)

// Error returned if Append or Write operation is not allowed due to the buffer
Expand Down Expand Up @@ -231,11 +229,7 @@ func (b *Buffer) Advance(count int) error {
// Failed returns true if buffer is in failed state. If buffer is in failed
// state, almost all buffer operations will fail
func (b *Buffer) Failed() bool {
failed := b.err != nil
if failed {
logp.Debug("streambuf", "buf parser already failed with: %s", b.err)
}
return failed
return b.err != nil
}

// Err returns the error value of the last failed operation.
Expand Down