Skip to content

Commit

Permalink
log put errors in splitstore log
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jun 28, 2021
1 parent 7f45c3e commit 98c6530
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions blockstore/splitstore/splitstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 98c6530

Please sign in to comment.