Skip to content

Commit

Permalink
Update log message to debug
Browse files Browse the repository at this point in the history
Signed-off-by: ilangofman <[email protected]>
  • Loading branch information
ilangofman committed Jun 30, 2021
1 parent 2ba3ba2 commit 0267a21
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pkg/ingester/ingester_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ func (i *Ingester) v2Query(ctx context.Context, req *client.QueryRequest) (*clie
i.metrics.queries.Inc()

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return &client.QueryResponse{}, nil
}

Expand Down Expand Up @@ -1054,7 +1054,7 @@ func (i *Ingester) v2QueryExemplars(ctx context.Context, req *client.ExemplarQue
i.metrics.queries.Inc()

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return &client.ExemplarQueryResponse{}, nil
}

Expand Down Expand Up @@ -1104,7 +1104,7 @@ func (i *Ingester) v2LabelValues(ctx context.Context, req *client.LabelValuesReq
}

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return &client.LabelValuesResponse{}, nil
}

Expand Down Expand Up @@ -1141,7 +1141,7 @@ func (i *Ingester) v2LabelNames(ctx context.Context, req *client.LabelNamesReque
}

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return &client.LabelNamesResponse{}, nil
}

Expand Down Expand Up @@ -1178,7 +1178,7 @@ func (i *Ingester) v2MetricsForLabelMatchers(ctx context.Context, req *client.Me
}

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return &client.MetricsForLabelMatchersResponse{}, nil
}

Expand Down Expand Up @@ -1250,7 +1250,7 @@ func (i *Ingester) v2UserStats(ctx context.Context, req *client.UserStatsRequest
}

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return &client.UserStatsResponse{}, nil
}

Expand All @@ -1267,7 +1267,7 @@ func (i *Ingester) v2AllUserStats(ctx context.Context, req *client.UserStatsRequ
defer i.userStatesMtx.RUnlock()

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of closing all TSBD")
return &client.UsersStatsResponse{}, nil
}

Expand Down Expand Up @@ -1316,7 +1316,7 @@ func (i *Ingester) v2QueryStream(req *client.QueryRequest, stream client.Ingeste
i.metrics.queries.Inc()

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of stopping and closing all TSBD")
return nil
}

Expand Down Expand Up @@ -1829,7 +1829,7 @@ func (i *Ingester) getMemorySeriesMetric() float64 {
count := uint64(0)

if i.State() == services.Stopping {
level.Warn(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of closing all TSBD")
level.Debug(i.logger).Log("Cannot retrieve TSDB, as the Ingester is in the process of closing all TSBD")
return 0
}

Expand Down

0 comments on commit 0267a21

Please sign in to comment.