]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Add bucket name to bucket stats error logging 37378/head
authorSeena Fallah <seenafallah@gmail.com>
Mon, 20 Apr 2020 22:05:08 +0000 (02:35 +0430)
committerShyukri Shyukriev <shshyukriev@suse.com>
Wed, 23 Sep 2020 16:42:59 +0000 (19:42 +0300)
Signed-off-by: Seena Fallah <seeenafallah@gmail.com>
(cherry picked from commit 1d58bc52774de80689b1f04d46f8f587a09df206)

src/rgw/rgw_bucket.cc

index d4c4ec5f412bff6578a7316f87816b365418db23..e7ebfeefa2ce974e8f10fdbefc239b5b52d14e7e 100644 (file)
@@ -1491,7 +1491,7 @@ static int bucket_stats(RGWRados *store, const std::string& tenant_name, const s
   string max_marker;
   int ret = store->get_bucket_stats(bucket_info, RGW_NO_SHARD, &bucket_ver, &master_ver, stats, &max_marker);
   if (ret < 0) {
-    cerr << "error getting bucket stats ret=" << ret << std::endl;
+    cerr << "error getting bucket stats bucket=" << bucket.name << " ret=" << ret << std::endl;
     return ret;
   }