From 8e1201d14706106ff02e9d8dcdf68c03c4fef0e9 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 4 May 2020 16:36:16 -0400 Subject: [PATCH] radosgw-admin: period commit writes messages to stderr the period's json output is written to stdout. any other messages should be written to stderr Signed-off-by: Casey Bodley (cherry picked from commit e48a20076274174705c5e6efde3730e993a0538d) --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 527de3e5715..d4f3d73442d 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1666,7 +1666,7 @@ static int commit_period(RGWRealm& realm, RGWPeriod& period, if (remote.empty() && url.empty()) { // use the new master zone's connection remote = master_zone.id; - cout << "Sending period to new master zone " << remote << std::endl; + cerr << "Sending period to new master zone " << remote << std::endl; } boost::optional conn; RGWRESTConn *remote_conn = nullptr; -- 2.47.3