forked from TrueCloudLab/frostfs-s3-gw
[#465] Unify log messages
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
300d4359d8
commit
de7281ac58
6 changed files with 10 additions and 10 deletions
4
api/cache/objectslist.go
vendored
4
api/cache/objectslist.go
vendored
|
@ -70,7 +70,7 @@ func (l *ObjectsListCache) Get(key ObjectsListKey) []oid.ID {
|
|||
result, ok := entry.([]oid.ID)
|
||||
if !ok {
|
||||
l.logger.Warn("invalid cache entry type", zap.String("actual", fmt.Sprintf("%T", entry)),
|
||||
zap.String("expected", "[]oid.ID"))
|
||||
zap.String("expected", fmt.Sprintf("%T", result)))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ func (l *ObjectsListCache) CleanCacheEntriesContainingObject(objectName string,
|
|||
k, ok := key.(ObjectsListKey)
|
||||
if !ok {
|
||||
l.logger.Warn("invalid cache key type", zap.String("actual", fmt.Sprintf("%T", key)),
|
||||
zap.String("expected", "ObjectsListKey"))
|
||||
zap.String("expected", fmt.Sprintf("%T", k)))
|
||||
continue
|
||||
}
|
||||
if cidStr == k.cid && strings.HasPrefix(objectName, k.prefix) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue