Skip to content

Commit

Permalink
remove debug logging from streambuf (elastic#15945)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Siering authored Jan 30, 2020
1 parent f3a8440 commit f465204
Showing 1 changed file with 1 addition and 7 deletions.
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

0 comments on commit f465204

Please sign in to comment.