print selectionSize

Signed-off-by: m.malygina <m.malygina@yadro.com>
m.malygina 2024-06-19 10:31:39 +03:00
parent bdf4c192e1
commit a97215de91
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,7 @@ func NewObjSelector(registry *ObjRegistry, selectionSize int, kind SelectorKind,
if selectionSize <= 0 {
selectionSize = objectSelectCache
}
println("selectionSize", selectionSize)
if filter == nil || filter.Status == "" {
panic("filtering without status is not supported")
}

View File

@ -182,7 +182,7 @@ 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, op : 'READ'})
.error(resp.error);
}
return
@ -210,6 +210,7 @@ export function obj_delete() {
}
const resp = s3_client.delete(obj.s3_bucket, obj.s3_key);
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, op : 'DELETE'}).error(resp.error);
if (!resp.success) {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key, op : 'DELETE'})
.error(resp.error);