We want to respect the settings in the mon config that affect logging before
we enable the flusher thread. That allows us to set (via the monitor) things
like log_to_file=false or log_to_syslog=true.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
cd6a5b9c40779956629803f222c365bdb291a169)
crush_location(this)
{
_log = new ceph::logging::Log(&_conf->subsys);
- _log->start();
_log_obs = new LogObs(_log);
_conf.add_observer(_log_obs);
_exit(1);
}
}
-
+ cct->_log->start();
// do the --show-config[-val], if present in argv
conf.do_argv_commands();