rgw: Add bucket name to bucket stats error logging

Signed-off-by: Seena Fallah <seeenafallah@gmail.com>
This commit is contained in:
Seena Fallah 2020-04-21 02:35:08 +04:30
parent 4b0237eb96
commit 1d58bc5277

View File

@ -1378,7 +1378,7 @@ static int bucket_stats(rgw::sal::RGWRadosStore *store, const std::string& tenan
string max_marker;
int ret = store->getRados()->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;
}