mirror of https://github.com/perkeep/perkeep.git
Merge "pkg/search: print describe speed only in debug"
This commit is contained in:
commit
2424354614
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue