fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

shards: trace printf on one line for List (#874)

If we have lots of work done we start to truncate in net/trace. So
display information more succinctly.

Test Plan: CI doesn't complain should be good enough

+2 -5
+1 -4
shards/eval.go
··· 80 80 } 81 81 defer func() { 82 82 if rl != nil { 83 - tr.LazyPrintf("repos size: %d", len(rl.Repos)) 84 - tr.LazyPrintf("reposmap size: %d", len(rl.ReposMap)) 85 - tr.LazyPrintf("crashes: %d", rl.Crashes) 86 - tr.LazyPrintf("stats: %+v", rl.Stats) 83 + tr.LazyPrintf("repos.size=%d reposmap.size=%d crashes=%d stats=%+v", len(rl.Repos), len(rl.ReposMap), rl.Crashes, rl.Stats) 87 84 } 88 85 if err != nil { 89 86 tr.LazyPrintf("error: %v", err)
+1 -1
shards/shards.go
··· 935 935 defer func() { 936 936 metricListRunning.Dec() 937 937 if rl != nil { 938 - tr.LazyPrintf("repos.size=%d reposmap.size=%d crashes=%d", len(rl.Repos), len(rl.ReposMap), rl.Crashes) 938 + tr.LazyPrintf("repos.size=%d reposmap.size=%d crashes=%d stats=%+v", len(rl.Repos), len(rl.ReposMap), rl.Crashes, rl.Stats) 939 939 } 940 940 if err != nil { 941 941 tr.LazyPrintf("error: %v", err)