Compare commits

...

2 Commits

Author SHA1 Message Date
Kerkesni de98266de1
fixup! add logging to getObjectMD 2023-09-15 14:48:27 +02:00
Kerkesni 4f76b82c69
add logging to getObjectMD 2023-09-15 14:35:12 +02:00
1 changed files with 17 additions and 4 deletions

View File

@ -299,14 +299,27 @@ class MetadataWrapper {
} }
getObjectMD(bucketName, objName, params, log, cb) { getObjectMD(bucketName, objName, params, log, cb) {
log.debug('getting object from metadata'); log.debug('getting object from metadata', {
bucketName,
objName,
params,
});
this.client.getObject(bucketName, objName, params, log, (err, data) => { this.client.getObject(bucketName, objName, params, log, (err, data) => {
if (err) { if (err) {
log.debug('error from metadata', { implName: this.implName, log.debug('error from metadata', {
err }); implName: this.implName,
bucketName,
objName,
params,
err,
});
return cb(err); return cb(err);
} }
log.debug('object retrieved from metadata'); log.debug('object retrieved from metadata', {
bucketName,
objName,
params,
});
return cb(err, data); return cb(err, data);
}); });
} }