log put errors in splitstore log

This commit is contained in:
vyzo 2021-06-28 15:21:51 +03:00
parent 9fda61abec
commit 40ff5bf164

View File

@ -324,6 +324,10 @@ func (s *SplitStore) Put(blk blocks.Block) error {
err = s.txnProtect.Mark(blk.Cid())
}
if err != nil {
log.Errorf("error putting cid %s in hotstore: %s", blk.Cid(), err)
}
return err
}
@ -364,6 +368,10 @@ func (s *SplitStore) PutMany(blks []blocks.Block) error {
}
}
if err != nil {
log.Errorf("error putting batch in hotstore: %s", err)
}
return err
}