From 1620de08aea14366a81d55b9db26fc7cf9a7fd67 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 24 Dec 2020 01:52:06 -0800 Subject: [PATCH] added more logs --- weed/s3api/s3api_objects_list_handlers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.go index a4c9bf0f1..5c3b898aa 100644 --- a/weed/s3api/s3api_objects_list_handlers.go +++ b/weed/s3api/s3api_objects_list_handlers.go @@ -310,8 +310,8 @@ func getListObjectsV1Args(values url.Values) (prefix, marker, delimiter string, func (s3a *S3ApiServer) isDirectoryAllEmpty(filerClient filer_pb.SeaweedFilerClient, parentDir, name string) (isEmpty bool, err error) { // println("+ isDirectoryAllEmpty", dir, name) - glog.V(4).Infof("+ start parentDir: %s name: %s", parentDir, name) - defer glog.V(4).Infof("- start parentDir: %s name: %s isEmpty: %v", parentDir, name, isEmpty) + glog.V(4).Infof("+ isEmpty %s/%s", parentDir, name) + defer glog.V(4).Infof("- isEmpty %s/%s %v", parentDir, name, isEmpty) var fileCounter int var subDirs []string currentDir := parentDir + "/" + name @@ -326,7 +326,7 @@ func (s3a *S3ApiServer) isDirectoryAllEmpty(filerClient filer_pb.SeaweedFilerCli } startFrom = entry.Name isExhausted = isExhausted || isLast - glog.V(4).Infof("list: %s/%s isExhausted: %t", currentDir, startFrom, isExhausted) + glog.V(4).Infof(" * %s/%s isLast: %t", currentDir, startFrom, isLast) return nil }, startFrom, false, 8) }