Skip to content

Commit

Permalink
fix(partition-ingester): Add stream creation error logging (#15640)
Browse files Browse the repository at this point in the history
  • Loading branch information
periklis authored Jan 8, 2025
1 parent 8e52975 commit f63c16f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pkg/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,14 @@ func (i *instance) createStream(ctx context.Context, pushReqStream logproto.Stre
}

func (i *instance) onStreamCreationError(ctx context.Context, pushReqStream logproto.Stream, err error, labels labels.Labels) (*stream, error) {
if i.configs.LogStreamCreation(i.instanceID) {
level.Debug(util_log.Logger).Log(
if i.configs.LogStreamCreation(i.instanceID) || i.cfg.KafkaIngestion.Enabled {
l := level.Debug(util_log.Logger)

if i.cfg.KafkaIngestion.Enabled {
l = level.Warn(util_log.Logger)
}

l.Log(
"msg", "failed to create stream, exceeded limit",
"org_id", i.instanceID,
"err", err,
Expand Down

0 comments on commit f63c16f

Please sign in to comment.