Added read status to obj

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2024-06-05 18:27:46 +03:00
parent d892b1633b
commit 1d6dc4c840

View file

@ -189,6 +189,7 @@ export function obj_read() {
.error(resp.error); .error(resp.error);
} else { } else {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}).info("read successfully"); log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}).info("read successfully");
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, objid: obj.id, status: obj.status}).info("obj.info")
obj_registry.setObjectStatus(obj.id, obj.status, 'read'); obj_registry.setObjectStatus(obj.id, obj.status, 'read');
} }