]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: only print version to stdout for daemons
authorSage Weil <sage.weil@dreamhost.com>
Thu, 24 Feb 2011 08:19:23 +0000 (00:19 -0800)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 24 Feb 2011 08:19:23 +0000 (00:19 -0800)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/common/common_init.cc

index f57d9940f2bd23c4c76665be6fdeab9105eb802d..6f03d1e5f15452a8f4b445a49b9644835c949ee5 100644 (file)
@@ -140,9 +140,8 @@ void common_init(std::vector<const char*>& args, const char *module_type, int fl
     _dout_open_log();
   }
 
-  if (!force_fg_logging) {
-    dout_output_ceph_version();
-  }
+  if (g_conf.daemonize)
+    cout << ceph_version_to_string() << std::endl;
 
   parse_config_options(args);
   install_standard_sighandlers();