From 8e807596d23df72e9ab9f876bcba7ad24c4b663e Mon Sep 17 00:00:00 2001 From: "m.malygina" Date: Wed, 5 Jun 2024 16:59:22 +0300 Subject: [PATCH] Added read status to obj Signed-off-by: m.malygina --- scenarios/s3longevity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scenarios/s3longevity.js b/scenarios/s3longevity.js index 1f6f8c1..6a30df1 100644 --- a/scenarios/s3longevity.js +++ b/scenarios/s3longevity.js @@ -186,10 +186,12 @@ export function obj_read() { } const resp = s3_client.get(obj.s3_bucket, obj.s3_key) if (!resp.success) { - log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}) + log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, status: obj.status, op: `READ`}) .error(resp.error); } else { obj_registry.setObjectStatus(obj.id, obj.status, "read"); + log.withFields({bucket : obj.s3_bucket, key : obj.s3_key}) + .info("read successfully"); } return