Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jul 1, 2024
1 parent 1369c6d commit 91e8d5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
12 changes: 3 additions & 9 deletions lib/api/apiUtils/object/createAndStoreObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,9 @@ function createAndStoreObject(bucketName, bucketMD, objectKey, objMD, authInfo,
if (objMD && objMD.uploadId) {
metadataStoreParams.oldReplayId = objMD.uploadId;
}
// I want logs that show the values of the following variables
log.info('objMD', { objMD });
log.info('bukcetMD', { bucketMD });
log.info('condition on archive', { condition: objMD?.archive && Object.keys(objMD.archive).length > 0 });
if (objMD?.['content-length'] && !bucketMD.isVersioningEnabled() &&
objMD && objMD?.archive && Object.keys(objMD.archive).length > 0) {

if (objMD && !bucketMD.isVersioningEnabled() &&
objMD?.archive && Object.keys(objMD.archive).length > 0) {
metadataStoreParams.doesNeedOplogUpdate = true;
}

Expand Down Expand Up @@ -297,12 +294,9 @@ function createAndStoreObject(bucketName, bucketMD, objectKey, objMD, authInfo,
metadataStoreParams.versioning = options.versioning;
metadataStoreParams.isNull = options.isNull;
metadataStoreParams.deleteNullKey = options.deleteNullKey;
log.trace('options', { options });
log.trace('options.extraMD', { extraMD: options.extraMD });
if (options.extraMD) {
Object.assign(metadataStoreParams, options.extraMD);
}
log.trace('metadataStoreParams', { metadataStoreParams });
return _storeInMDandDeleteData(bucketName, infoArr,
cipherBundle, metadataStoreParams,
options.dataToDelete, log, requestMethod, next);
Expand Down
1 change: 0 additions & 1 deletion lib/api/objectPut.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ function objectPut(authInfo, request, streamingV4Params, log, callback) {
}

log.trace('owner canonicalID to send to data', { canonicalID });
log.trace('isPutVersion', { isPutVersion });

return standardMetadataValidateBucketAndObj(valParams, request.actionImplicitDenies, log,
(err, bucket, objMD) => {
Expand Down

0 comments on commit 91e8d5f

Please sign in to comment.