From d60b57ef9c91dbca7ca7bfeb834834cff7afe6eb Mon Sep 17 00:00:00 2001 From: iliul Date: Tue, 7 Nov 2017 15:17:26 +0800 Subject: [PATCH] rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats Signed-off-by: iliul --- src/rgw/rgw_op.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index e68d8739e2e..85bc221d0e0 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; } -- 2.47.3