​

zoekt: 45 files / 179 matches / 0.47ms neogrok: 20 files / 54 matches

neogrokcmd/flags.go 1 match | Go | №1

37 name := filepath.Base(os.Args[0])38 fmt.Printf("%s version %q\n", name, index.Version)39 os.Exit(0)

neogrokweb/server.go 2 matches | Go | №2

184 if err != nil {185 log.Printf("html template parse error: %v", err)186 t = template.Must(template.New("empty").Parse(""))
201 if err != nil {202 log.Printf("text template parse error: %v", err)203 t = texttemplate.Must(texttemplate.New("empty").Parse(""))

neogrokindex/read.go 2 matches | Go | №3

136 skipSection = true137 log.Printf("encountered unrecognized index section (%s), skipping over it", tag)138
792 rNgram = ngramToRunes(ngram)793 fmt.Printf("%d\t%q\n", ss.sz, string(rNgram[:]))794 }

neogrokquery/parse.go 1 match | Go | №4

27 28 var _ = log.Printf29

neogrokindex/ctags.go 5 matches | Go | №5

274 if errors.As(err, &timeoutErr) {275 log.Printf("WARN: skipping symbol analysis after timeout: file=%q parser=%s duration=%v timeout=%v size_bytes=%d", m.currentDocName, ctags.ParserToString(parserType), now.Sub(m.currentDocStart).Truncate(time.Second), timeoutErr.Timeout, m.currentDocSize)276 } else if m.currentDocStuckCount > 0 {277 // Inform done if we warned about the current document.278 log.Printf("symbol analysis for %s (size %d bytes) is done and found %d symbols", m.currentDocName, m.currentDocSize, len(entries))279 }
305 m.mu.Lock()306 log.Printf("symbol analysis finished for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)307 m.mu.Unlock()
316 m.currentDocStuckCount++317 log.Printf("WARN: symbol analysis for %s (%d bytes) has been running for %v", m.currentDocName, m.currentDocSize, running)318 }
323 m.mu.Lock()324 log.Printf("DEBUG: symbol analysis still running for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)325 m.mu.Unlock()

neogrokindex/merge.go 2 matches | Go | №6

86 87 log.Printf("finished shard %s: %d index bytes (overhead %3.1f)", fn, fi.Size(),88 float64(fi.Size())/float64(ib.ContentSize()+1))
194 if err := os.Rename(tmpFn, dstFn); err != nil {195 log.Printf("explode: rename failed: %s", err)196 }

neogroksearch/sched.go 2 matches | Go | №7

108 } else {109 log.Printf("ZOEKTSCHED=batchdiv=%d specified. Batch queue size 1/%d of %d.", batchdiv, batchdiv, capacity)110 }
120 } else {121 log.Printf("ZOEKTSCHED=interactiveseconds=%d specified. Search requests will move to batch queue after %d seconds.", interactiveseconds, interactiveseconds)122 }

neogrokquery/regexp.go 2 matches | Go | №8

64 if err != nil {65 log.Printf("failed to copy regexp `%s`: %v", re, err)66 return re
73 if err != nil {74 log.Printf("failed to parse regexp after uncapture `%s`: %v", r, err)75 return re

neogrokweb/snippets.go 2 matches | Go | №9

55 }); err != nil {56 log.Printf("fragment template: %v", err)57 return ""
84 if err != nil {85 log.Printf("url template: %v", err)86 return ""

neogroksearch/shards.go 4 matches | Go | №10

374 375 log.Printf("[INFO] loading %d shard(s): %s", len(keys), humanTruncateList(keys, 5))376
380 if time.Since(lastProgress) > 5*time.Second {381 log.Printf("[INFO] still need to load %d shards...", len(keys)-i)382 lastProgress = time.Now()
396 metricShardsLoadFailedTotal.Inc()397 log.Printf("[ERROR] reloading: %s, err %v ", key, err)398 return
1470 if err != nil {1471 log.Printf("[ERROR] mkRankedShard(%s): failed to cache repository list: %v", s, err)1472 return &rankedShard{Searcher: s}

neogrokindex/builder.go 8 matches | Go | №11

441 // reindex content.442 log.Printf("warn: immutable field changed, requires re-index: %s", err)443 return IndexStateContent, fn
676 for tmp := range b.finishedShards {677 log.Printf("Builder.Finish %s", tmp)678 os.Remove(tmp)
799 }800 log.Printf("removing old shard file: %s", p)801 if err := os.Remove(p); err != nil {
975 if err != nil {976 log.Printf("ignoring universal:%s or scip:%s error: %v", b.opts.CTagsPath, b.opts.ScipCTagsPath, err)977 }
1017 1018 log.Printf("writing memory profile, allocated heap: %s", humanize.Bytes(m.HeapAlloc))1019 name := filepath.Join(b.opts.IndexDir, fmt.Sprintf("indexmemory.prof.%d", b.heapProfileNum))

neogrokgitindex/tree.go 1 match | Go | №12

129 if err := rw.handleSubmodule(p, id, branch, subRepoVersions, ig); err != nil {130 log.Printf("submodule %s: ignoring error %v", p, err)131 }

neogrokgitindex/index.go 10 matches | Go | №13

546 if err := setTemplatesFromRepo(&opts.BuildOptions.RepositoryDescription, repo, opts.RepoDir); err != nil {547 log.Printf("setTemplatesFromRepo(%s): %s", opts.RepoDir, err)548 }
595 if err != nil {596 log.Printf("delta build: falling back to normal build since delta build failed, repository=%q, err=%s", opts.BuildOptions.RepositoryDescription.Name, err)597 opts.BuildOptions.IsDelta = false
619 if err := SetTemplatesFromOrigin(&tpl, info.URL); err != nil {620 log.Printf("setTemplatesFromOrigin(%s, %s): %s", path, info.URL, err)621 }
682 } else {683 log.Printf("cat-file batch enabled via ZOEKT_DISABLE_CATFILE_BATCH=false")684 }
688 useCatfileBatch = false689 log.Printf("git cat-file does not support --filter (%v), using go-git", err)690 }

neogroksearch/watcher.go 1 match | Go | №14

203 if len(toDrop) > 0 {204 log.Printf("[INFO] unloading %d shard(s): %s", len(toDrop), humanTruncateList(toDrop, 5))205 }

neogrokcmd/zoekt/main.go 5 matches | Go | №15

46 if list {47 fmt.Printf("%s%s%s\n", r, f.FileName, addTabIfNonEmpty(f.Debug))48 continue
52 l := bytes.TrimSuffix(m.Line, []byte{'\n'})53 fmt.Printf("%s%s:%d:%s%s\n", r, f.FileName, m.LineNumber, l, addTabIfNonEmpty(f.Debug))54 }
94 }95 log.Printf("repo metadata: %#v", repo)96 log.Printf("index metadata: %#v", index)97 }
247 if *verbose {248 log.Printf("stats: %#v", sres.Stats)249 }

neogrokgitindex/clone.go 1 match | Go | №16

65 if err := setFetch(repoDest, "origin", "+refs/heads/*:refs/heads/*"); err != nil {66 log.Printf("addFetch: %v", err)67 }

neogrokindex/indexdata.go 1 match | Go | №17

293 if err != nil {294 log.Printf("error reading newline index for document %d on shard %s: %v", i, d.file.Name(), err)295 continue

neogrokindex/indexfile.go 1 match | Go | №18

50 if err := unix.Munmap(f.data); err != nil {51 log.Printf("WARN failed to Munmap %s: %v", f.name, err)52 }

neogrokgitindex/delete.go 1 match | Go | №19

30 if len(toDelete) > 0 {31 log.Printf("deleting repos %v", toDelete)32 }

neogrokcmd/zoekt-test/main.go 2 matches | Go | №20

165 sort.Strings(del)166 log.Printf("pattern %q, add %v, del %v", t, add, del)167 }
188 runtime.ReadMemStats(&b)189 log.Printf("%s loaded in %d ms, additional memory consumption: %d MiB", s.String(), duration.Milliseconds(), (b.Alloc-a.Alloc)/1024/1024)190