forked from TrueCloudLab/frostfs-s3-gw
[#595] Add debug log when bucket settings not found
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
This commit is contained in:
parent
e060308318
commit
0cab76d01e
2 changed files with 3 additions and 0 deletions
|
@ -13,6 +13,7 @@ import (
|
||||||
apierr "git.frostfs.info/TrueCloudLab/frostfs-s3-gw/api/errors"
|
apierr "git.frostfs.info/TrueCloudLab/frostfs-s3-gw/api/errors"
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-s3-gw/api/layer/frostfs"
|
"git.frostfs.info/TrueCloudLab/frostfs-s3-gw/api/layer/frostfs"
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-s3-gw/api/layer/tree"
|
"git.frostfs.info/TrueCloudLab/frostfs-s3-gw/api/layer/tree"
|
||||||
|
"git.frostfs.info/TrueCloudLab/frostfs-s3-gw/internal/logs"
|
||||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/object"
|
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/object"
|
||||||
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
|
cid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/container/id"
|
||||||
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
oid "git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object/id"
|
||||||
|
@ -215,6 +216,7 @@ func (n *Layer) GetBucketSettings(ctx context.Context, bktInfo *data.BucketInfo)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
settings = &data.BucketSettings{Versioning: data.VersioningUnversioned}
|
settings = &data.BucketSettings{Versioning: data.VersioningUnversioned}
|
||||||
|
n.reqLogger(ctx).Debug(logs.BucketSettingsNotFoundUseDefaults)
|
||||||
}
|
}
|
||||||
|
|
||||||
n.cache.PutSettings(owner, bktInfo, settings)
|
n.cache.PutSettings(owner, bktInfo, settings)
|
||||||
|
|
|
@ -185,4 +185,5 @@ const (
|
||||||
FailedToPutTombstones = "failed to put tombstones"
|
FailedToPutTombstones = "failed to put tombstones"
|
||||||
WarnDomainContainsPort = "the domain contains a port, domain skipped"
|
WarnDomainContainsPort = "the domain contains a port, domain skipped"
|
||||||
CouldntCacheNetmap = "couldn't cache netmap"
|
CouldntCacheNetmap = "couldn't cache netmap"
|
||||||
|
BucketSettingsNotFoundUseDefaults = "bucket settings not found, use defaults"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue