From: iliul Date: Tue, 7 Nov 2017 07:17:26 +0000 (+0800) Subject: rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats X-Git-Tag: v13.0.1~259^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d60b57ef9c91dbca7ca7bfeb834834cff7afe6eb;p=ceph.git rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats Signed-off-by: iliul --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index e68d8739e2e8..85bc221d0e0a 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -1942,20 +1942,20 @@ void RGWGetUsage::execute() op_ret = rgw_user_sync_all_stats(store, s->user->user_id); if (op_ret < 0) { - ldout(store->ctx(), 0) << "ERROR: failed to sync user stats: " << dendl; + ldout(store->ctx(), 0) << "ERROR: failed to sync user stats" << dendl; return; } op_ret = rgw_user_get_all_buckets_stats(store, s->user->user_id, buckets_usage); if (op_ret < 0) { - cerr << "ERROR: failed to sync user stats: " << std::endl; - return ; + ldout(store->ctx(), 0) << "ERROR: failed to get user's buckets stats" << dendl; + return; } string user_str = s->user->user_id.to_str(); op_ret = store->cls_user_get_header(user_str, &header); if (op_ret < 0) { - ldout(store->ctx(), 0) << "ERROR: can't read user header: " << dendl; + ldout(store->ctx(), 0) << "ERROR: can't read user header" << dendl; return; }