write check summary at the end

This commit is contained in:
vyzo 2021-07-25 11:42:13 +03:00
parent 5718da237f
commit 5285a14d27

View File

@ -118,13 +118,10 @@ func (s *SplitStore) doCheck(curTs *types.TipSet) error {
return err return err
} }
if coldCnt == 0 && missingCnt == 0 { log.Infow("check done", "cold", coldCnt, "missing", missingCnt)
log.Info("check OK") write("--")
write("OK") write("cold: %d missing: %d", coldCnt, missingCnt)
} else { write("DONE")
log.Infow("check failed", "cold", coldCnt, "missing", missingCnt)
write("FAILED")
}
return nil return nil
} }