diff --git a/pkg/search/query.go b/pkg/search/query.go index 2ca93bb7c..d0c2e557c 100644 --- a/pkg/search/query.go +++ b/pkg/search/query.go @@ -1102,7 +1102,9 @@ func (h *Handler) Query(rawq *SearchQuery) (ret_ *SearchResult, _ error) { q.Describe.BlobRefs = blobs t0 := time.Now() res, err := s.h.DescribeLocked(ctx, q.Describe) - log.Printf("Describe of %d blobs = %v", len(blobs), time.Since(t0)) + if debugQuerySpeed { + log.Printf("Describe of %d blobs = %v", len(blobs), time.Since(t0)) + } if err != nil { return nil, err }