]> git.apps.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)
committerCasey Bodley <cbodley@redhat.com>
Mon, 4 May 2020 20:36:18 +0000 (16:36 -0400)
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>
src/rgw/rgw_admin.cc

index a1a011e0153e65c94d2d94c95ce5e58ea0d79932..e3289198a700d04ba631f1c09e328e81a5cee225 100644 (file)
@@ -1657,7 +1657,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;