Skip to content

Commit

Permalink
Loki: remove redundant log line on stream limit, the GRPC error logge…
Browse files Browse the repository at this point in the history
…r already logs this. (#2250)
  • Loading branch information
slim-bean authored Jun 23, 2020
1 parent 687662e commit 60bf23d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"sync"
"time"

"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
Expand Down Expand Up @@ -171,7 +170,6 @@ func (i *instance) getOrCreateStream(pushReqStream logproto.Stream) (*stream, er
bytes += len(e.Line)
}
validation.DiscardedBytes.WithLabelValues(validation.StreamLimit, i.instanceID).Add(float64(bytes))
level.Warn(cutil.Logger).Log("message", "could not create new stream for tenant", "error", err)
return nil, httpgrpc.Errorf(http.StatusTooManyRequests, validation.StreamLimitErrorMsg())
}

Expand Down

0 comments on commit 60bf23d

Please sign in to comment.