]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmaptool: don't put progress on stdout 824/head
authorDan Mick <dan.mick@inktank.com>
Wed, 6 Nov 2013 00:11:10 +0000 (16:11 -0800)
committerDan Mick <dan.mick@inktank.com>
Wed, 6 Nov 2013 00:20:50 +0000 (16:20 -0800)
If one requests JSON output, the progress message pollutes the output;
don't do that, send it to stderr instead

Signed-off-by: Dan Mick <dan.mick@inktank.com>
src/tools/osdmaptool.cc

index 2e55026076c32c8b67ca8a349f0a9f1c7e55467a..edd31284c4d4f363b3105a83a46fceb2d254f780 100644 (file)
@@ -156,7 +156,7 @@ int main(int argc, const char **argv)
   OSDMap osdmap;
   bufferlist bl;
 
-  cout << me << ": osdmap file '" << fn << "'" << std::endl;
+  cerr << me << ": osdmap file '" << fn << "'" << std::endl;
   
   int r = 0;
   struct stat st;