forked from TrueCloudLab/frostfs-node
[#1905] shard: Decrease severity level of write-cache failure logs
In previous implementation `Shard.Delete` logged writecache's removal failures in `error` level. There is a need to decrease severity of these log records since they aren't critical and don't require individual review. Change level of the message to `info`. Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
This commit is contained in:
parent
98ac525272
commit
b1fa084756
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func (s *Shard) Delete(prm DeletePrm) (DeleteRes, error) {
|
|||
if s.hasWriteCache() {
|
||||
err := s.writeCache.Delete(prm.addr[i])
|
||||
if err != nil && !IsErrNotFound(err) {
|
||||
s.log.Error("can't delete object from write cache", zap.String("error", err.Error()))
|
||||
s.log.Warn("can't delete object from write cache", zap.String("error", err.Error()))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue