From 132f275d04df3efa925c0d3d071bc927d669f489 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 23 Dec 2020 12:21:21 -0800 Subject: [PATCH] s3: log errors instead of stopping when checking isDirectoryAllEmpty has error --- weed/s3api/s3api_objects_list_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.go index b674f87cd..0af099967 100644 --- a/weed/s3api/s3api_objects_list_handlers.go +++ b/weed/s3api/s3api_objects_list_handlers.go @@ -265,7 +265,7 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d } else { var isEmpty bool if isEmpty, err = s3a.isDirectoryAllEmpty(client, dir, entry.Name); err != nil { - return + glog.Errorf("check empty folder %s: %v", dir, err) } if !isEmpty { eachEntryFn(dir, entry)