]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: period commit writes messages to stderr
authorCasey Bodley <cbodley@redhat.com>
Mon, 4 May 2020 20:36:16 +0000 (16:36 -0400)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:51 +0000 (16:34 +0800)
the period's json output is written to stdout. any other messages should
be written to stderr

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit e48a20076274174705c5e6efde3730e993a0538d)

src/rgw/rgw_admin.cc

index 527de3e5715dbf3ee843542d213ad44fe414b856..d4f3d73442da9a047912dc6b2fa7560c270c6b43 100644 (file)
@@ -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<RGWRESTConn> conn;
   RGWRESTConn *remote_conn = nullptr;