Skip to content

Commit d262059

Browse files
committed
Improve logging levels post review
Issue: CLDSRV-613
1 parent 5cbf1a1 commit d262059

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

lib/api/apiUtils/object/coldStorage.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ function startRestore(objectMD, restoreParam, log, cb) {
253253
});
254254
return cb(checkResultError);
255255
}
256-
log.debug('Updating restore information.');
257256
const updateResultError = _updateRestoreInfo(objectMD, restoreParam, log);
258257
if (updateResultError) {
259258
log.debug('Failed to update restore information.', {
@@ -262,6 +261,9 @@ function startRestore(objectMD, restoreParam, log, cb) {
262261
});
263262
return cb(updateResultError);
264263
}
264+
log.debug('Validated and updated restore information', {
265+
method: 'startRestore'
266+
});
265267
const isObjectAlreadyRestored = _updateObjectExpirationDate(objectMD, log);
266268
return cb(null, isObjectAlreadyRestored);
267269
}

lib/api/apiUtils/object/objectRestore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function objectRestore(metadata, mdUtils, userInfo, request, log, callback) {
9494
log.trace('version is a delete marker', { method: METHOD, error: err });
9595
return next(err, bucketMD, objectMD);
9696
}
97-
log.debug('it acquired the object metadata.', {
97+
log.debug('acquired the object metadata.', {
9898
'method': METHOD,
9999
});
100100
return next(null, bucketMD, objectMD);
@@ -108,7 +108,7 @@ function objectRestore(metadata, mdUtils, userInfo, request, log, callback) {
108108
if (err) {
109109
return next(err, bucketMD, objectMD, restoreInfo);
110110
}
111-
log.debug('it parsed xml of the request body.', { method: METHOD, value: restoreInfo });
111+
log.debug('parsed xml of the request body.', { method: METHOD, value: restoreInfo });
112112
const checkTierResult = checkTierSupported(restoreInfo);
113113
if (checkTierResult instanceof Error) {
114114
return next(checkTierResult);

lib/api/completeMultipartUpload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function completeMultipartUpload(authInfo, request, log, callback) {
457457
// the previous MPU completion attempt
458458
//
459459
if (!locationKeysHaveChanged(objMD.location, dataLocations)) {
460-
log.debug('MPU complete request replay detected', {
460+
log.info('MPU complete request replay detected', {
461461
method: 'completeMultipartUpload.storeAsNewObj',
462462
bucketName: destinationBucket.getName(),
463463
objectKey: metaStoreParams.objectKey,

lib/routes/routeBackbeat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ function putMetadata(request, response, bucketInfo, objMd, log, callback) {
605605
// transition processor.
606606
omVal.location && Array.isArray(omVal.location) &&
607607
locationKeysHaveChanged(objMd.location, omVal.location)) {
608-
log.debug('removing old data locations', {
608+
log.info('removing old data locations', {
609609
method: 'putMetadata',
610610
bucketName,
611611
objectKey,
@@ -1160,7 +1160,7 @@ function batchDelete(request, response, userInfo, log, callback) {
11601160
}
11611161
dataWrapper.data.delete(_loc, log, err => {
11621162
if (err?.is?.ObjNotFound) {
1163-
log.warn('batch delete: data location do not exist', {
1163+
log.info('batch delete: data location do not exist', {
11641164
method: 'batchDelete',
11651165
location: loc,
11661166
});

0 commit comments

Comments
 (0)