Skip to content

Commit

Permalink
Change error log to debug log
Browse files Browse the repository at this point in the history
This log seems more of a debug log as it's just stating that
the buffer is being reset and there is nothing to indicate
this is not expected or normal behavior.
  • Loading branch information
rmweir committed Feb 17, 2022
1 parent 266bce3 commit 31afcc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readbuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (r *readBuffer) Offer(reader io.Reader) error {
}

if r.buf.Len() > MaxBuffer*2 {
logrus.Errorf("remotedialer buffer id=%d exceeded, length: %d", r.id, r.buf.Len())
logrus.Errorf("remotedialer buffer exceeded id=%d, length: %d", r.id, r.buf.Len())
}

return nil
Expand Down Expand Up @@ -89,7 +89,7 @@ func (r *readBuffer) Read(b []byte) (int, error) {
}

if r.buf.Cap() > MaxBuffer/8 {
logrus.Errorf("resetting remotedialer buffer id=%d to zero, old cap %d", r.id, r.buf.Cap())
logrus.Debugf("resetting remotedialer buffer id=%d to zero, old cap %d", r.id, r.buf.Cap())
r.buf = bytes.Buffer{}
}

Expand Down

0 comments on commit 31afcc1

Please sign in to comment.