Reopen the dout stream only after we parse all configuration options.
Specifying --log-file on the command line now works as expected.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
if (force_fg_logging)
set_foreground_logging();
+ if (g_conf.daemonize)
+ cout << ceph_version_to_string() << std::endl;
+
+ parse_config_options(args);
+
{
// In the long term, it would be best to ensure that we read ceph.conf
// before initializing dout(). For now, just force a reopen here with the
_dout_open_log();
}
- if (g_conf.daemonize)
- cout << ceph_version_to_string() << std::endl;
-
- parse_config_options(args);
install_standard_sighandlers();
#ifdef HAVE_LIBTCMALLOC