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
}
if coldCnt == 0 && missingCnt == 0 {
log.Info("check OK")
write("OK")
} else {
log.Infow("check failed", "cold", coldCnt, "missing", missingCnt)
write("FAILED")
}
log.Infow("check done", "cold", coldCnt, "missing", missingCnt)
write("--")
write("cold: %d missing: %d", coldCnt, missingCnt)
write("DONE")
return nil
}