some log cleanup and an extra trace value

This commit is contained in:
whyrusleeping 2019-12-17 14:15:51 -08:00
parent 31327a383f
commit 3cb4a60db4
2 changed files with 3 additions and 0 deletions

View File

@ -1022,6 +1022,8 @@ func (syncer *Syncer) iterFullTipsets(ctx context.Context, headers []*types.TipS
ctx, span := trace.StartSpan(ctx, "iterFullTipsets")
defer span.End()
span.AddAttributes(trace.Int64Attribute("num_headers", int64(len(headers))))
windowSize := 200
for i := len(headers) - 1; i >= 0; {
fts, err := syncer.store.TryFillTipSet(headers[i])

View File

@ -20,6 +20,7 @@ func main() {
logging.SetLogLevel("swarm2", "WARN")
logging.SetLogLevel("bitswap", "WARN")
logging.SetLogLevel("pubsub", "WARN")
logging.SetLogLevel("connmgr", "WARN")
local := []*cli.Command{
DaemonCmd,