Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Oct 15, 2024
1 parent 24a6a44 commit f1d8504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/lifecycle/tasks/LifecycleDeleteObjectTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class LifecycleDeleteObjectTask extends BackbeatTask {
// <!> Only in S3C <!> Backbeat API returns 'InvalidBucketState' error if the bucket is not versioned.
// In this case, instead of logging an error, it should be logged as a debug message,
// to avoid causing unnecessary concern to the customer.
// TODO: After the implementation of CLDSRV-461, we could remove this check.
// TODO: BB-612
const logLevel = err.code === 'InvalidBucketState' ? 'debug' : 'error';
log[logLevel]('error getting metadata blob from S3', Object.assign({
method: 'LifecycleDeleteObjectTask._getMetadata',
Expand Down
2 changes: 1 addition & 1 deletion lib/BackbeatMetadataProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class BackbeatMetadataProxy extends BackbeatTask {
// <!> Only in S3C <!> Backbeat API returns 'InvalidBucketState' error if the bucket is not versioned.
// In this case, instead of logging an error, it should be logged as a debug message,
// to avoid causing unnecessary concern to the customer.
// TODO: After the implementation of CLDSRV-461, we could remove this check.
// TODO: BB-612
if (err.ObjNotFound || err.code === 'ObjNotFound' || err.code === 'InvalidBucketState') {
return cbOnce(err);
}
Expand Down

0 comments on commit f1d8504

Please sign in to comment.