diff --git a/promql/query_logger.go b/promql/query_logger.go index 9b7b89cbe..dce2fa3f1 100644 --- a/promql/query_logger.go +++ b/promql/query_logger.go @@ -220,7 +220,7 @@ func (tracker ActiveQueryTracker) Delete(insertIndex int) { func (tracker ActiveQueryTracker) Insert(ctx context.Context, query string) (int, error) { if !tracker.isRunning.Load() { - return 0, errors.New("ActiveQueryTracker is stopped") + return 0, nil } select { case i := <-tracker.getNextIndex: