Skip to content

Commit

Permalink
Cherry-pick #15945 to 7.x: remove debug logging from streambuf (#15971)
Browse files Browse the repository at this point in the history
(cherry picked from commit f465204)
  • Loading branch information
Steffen Siering authored Jan 31, 2020
1 parent 40a9b3f commit ff8bd04
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 ff8bd04

Please sign in to comment.